首页 > 其他分享 >Udemy AWS SAA - EC2

Udemy AWS SAA - EC2

时间:2024-04-01 17:11:06浏览次数:19  
标签:group Instance SAA AWS machine instance EC2 security

172+198=370

37/370

EC2= Elastic Compute Cloud = Infrastructure as a Service
It mainly consists in the capability of :

  • Renting virtual machines (EC2)
    • we can choose OS of the virtual machine, how much compute power of a CPU, how much RAM
    • we can choose how much storage space
      • Network-attached (EBS & EFS)
      • hardware (EC2 instance store)
    • Network card: speed of the card, Public IP address
    • Firewall rules: security group
    • Bootstrap script (configure at first launch): EC2 User Data
  • Storing data on virtual drives (EBS)
  • Distributing load across machines (ELB)
  • Scaling the services using an auto-scaling group (ASG)

EC2 User Data

  • an EC2 User data script bootstrap our instances. Bootstrapping means launching commands when a machine starts. That script is only run once at the instance first start. EC2 user data is used to automate boot tasks such as:
    • Installing updates
    • Installing software
    • Downloading common files from the internet
    • Anything you can think of
  • The EC2 User Data Script runs with the root user

EC2 Instance:

  • an EC2 virtual machine
  • can used to host a website

If you stop and then restart the instance, the assigned Public IPv4 address might change

EC2 Instance Types
example: m5.2xlarge

  • m: instance class
  • 5: generation (AWS improve its hardware over time)
  • 2xlarge: size within the instance class, more memory

EC2 Instance Types - General Purpose
Great for a diversity of workloads such as web servers or code repositories. Balance between:

  • Compute
  • Memory
  • Networking
    In the course, we will be using the t2.micro which is a General Purpose EC2 instance

EC2 Instance Types- Compute Optimized
begin with c. Great for compute-intensive tasks that require high performance processors.

  • Batch processing workloads
  • Media transcoding
  • High performance web servers
  • High performance computing (HPC)
  • Scientific modeling & machine learning
  • Dedicated gaming servers

EC2 Instance Types-Memory Optimized
Start with R (R for RAM). Fast performance for workloads that process large data sets in memory
Use cases:

  • High performance, relational/non-relational databases
  • Distributed web scale cache stores
  • In-memory databases optimized for Bl (business intelligence)
  • Applications performing real-time processing of big unstructured data

EC2 InstanceTypes-Storage Optimized
Start with I / D / H1. Great for storage-intensive tasks that require high, sequential read and write access to large data sets on local storage
Use cases:

  • High frequency online transaction processing (OLTP) systems
  • Relational& NoSOL databases
  • Cache for in-memory databases (for example, Redis)
  • Data warehousing applications
  • Distributed file systems

Security Groups

  • Security Groups are the fundamental of network security in AWS.They control how traffic is allowed into or out of our EC2 Instances. Just like firewall.
  • Security groups only contain allow rules and can reference by IP or by security group
  • They regulate:
    • Access to Ports
    • Authorized IP ranges-lPv4 and lPv6
    • Control of inbound network (from other to the instance)
    • Control of outbound network (from the instance to other)
  • they can be attached to multiple instances, locked down to a region/VPC combination
  • it's good to maintain one separate security group for SSH access
  • if you app is timed out, then it's security group issue, if it gives connection refused, then it's app error
  • security groups can authorize each other

Classic Ports to know
22=SSH(Secure Shell) - log into a Linux instance
21= FTP (FileTransfer Protocol)- upload files into a file share
22= SFTP (Secure File Transfer Protocol)- upload files using SSH
80=HTTP-access unsecured websites
443=HTTPS-access secured websites
3389=RDP(Remote Desktop Protocol)-log into a Windows instance

SSH Overview

  • can be used on Mac Linux and Windows >= 10
  • if windows, can use Putty
  • EC2 Instance Connect work for all OS

SSH on linux / Mac

  • SSH allows you to control a remote machine, all using the command line
    • pwd: show where you at
    • ls: list all files in the folder you are
    • cd filename: go to which file
    • ssh -I filename 你的username@这里写IP地址: log into the EC2 machine

EC2 Instance Connect
Just click a button on AWS, voila you are in the EC2 machine. Be careful that you need to open your security group access

标签:group,Instance,SAA,AWS,machine,instance,EC2,security
From: https://www.cnblogs.com/miramira/p/18108882

相关文章

  • Udemy AWS SAA - Intro and IAM
    HowtochooseanAWSRegionifyouneedtolaunchanewappCompliance:withdatagovernanceandlegalrequirement,dataneverleavesaregionw/oyourexplicitpermissionProximity:tocustomers,toreducelatencyAvailableservices:someregiondoesn&#......
  • AWS Solutions Architect - Prep
    What'sAWSS3databaseforunstructureddata,wecanputastaticwebsite(doesn'tneedthatmuchback-end)onS3WhyuseS3highscalabilityhorizontalscaling:storagedoesn'tfulfilltheneed,thenjustusemoredevicesverticalscali......
  • 新零售SaaS架构:客户管理系统的应用架构设计
    客户管理系统的应用架构设计应用层定义了软件系统的应用功能,负责接收用户的请求,协调领域层能力来执行任务,并将结果返回给用户,功能模块包括:客户管理:核心功能模块,负责收集和更新客户信息,包括个人资料、联系方式、消费习惯、会员卡、归属信息(比如销售或顾问)和备注。这个模块......
  • 新零售SaaS架构:客户管理系统的应用架构设计
    客户管理系统的应用架构设计应用层定义了软件系统的应用功能,负责接收用户的请求,协调领域层能力来执行任务,并将结果返回给用户,功能模块包括:客户管理:核心功能模块,负责收集和更新客户信息,包括个人资料、联系方式、消费习惯、会员卡、归属信息(比如销售或顾问)和备注。这个模块是CRM......
  • Java商城 免 费 搭 建:鸿鹄云商实现多种商业模式,VR全景到SAAS,应有尽有
    鸿鹄云商b2b2c产品概述【b2b2c平台】,以传统电商行业为基石,鸿鹄云商支持“商家入驻+平台自营”多运营模式,积极打造“全新市场,全新模式”企业级b2b2c电商平台,致力干助力各行/互联网创业腾飞并获取更多的收益。从消费者出发,助力企业构建完整电商交易生态,整合资源,创造更有利的......
  • ASAA821-EARB0-7H 金手指连接器 SMD卧贴 间距0.5MM 260P DDR4 FOXCONN(富士康)
    ASAA821-EARB0-7H衔接器主要用于电脑和其他电子产品中,完成电气衔接和信号传输。在实践运用中,它可能需要与相应的插座或其他衔接器配合运用。ASAA821-EARB0-7H是富士康(FOXCONN)企业集团出产的一款金手指连接器。以下是关于该产品的部分信息:品牌:FOXCONN/富士康型号:ASAA821-EAR......
  • 关于AWS-EFS-跨VPC及跨账号-客户端的挂载方法-注意事项
    关于EFS客户端挂载EFS的方式,可以参考笔者的另一篇文件《使用EFS客户端帮助程序-对AWS-EFS-访问点-Access-points-的挂载》但这是对于同一个VPC中EC2,可以直接简单的使用那样的方式进行挂载如果是不同的VPC之间或者跨账号,应该如何挂载呢?当然这里假定网络的连接都已经打通首先,我们......
  • NVIDIA人形机器人AI套件:NVIDIA Isaac Manipulator 和 NVIDIA Isaac Perceptor
    IsaacManipulator为机械臂提供了卓越的灵活性和模块化AI功能,并提供了一系列强大的基础模型和GPU加速库。它提供了高达80倍的路径规划加速,零样本感知提高了效率和吞吐量,使开发者能够实现更多新的机器人任务的自动化。早期生态系统合作伙伴包括安川电机、泰瑞达旗下子公司优傲、Pic......
  • 企业级快速开发框架 nbsaas-boot 1.1.8-2024 发布了
    <parent><groupId>com.nbsaas.boot</groupId><artifactId>nbsaas-boot</artifactId><version>1.1.8-2024</version></parent>本次更新内容1.重构代码生成器,采用类提取和字段提取两种方式,提取功能接口,方便后期扩展2.对数据字典注解增加字符串类型3.......
  • MQTT.FX 连接AWS IoT Core 测试
    登录AWS->服务->物联网->IoTCore           登录IoTCore->所有设备物品->创建物品创建物品->下一步下载五个文件:2,3,4导导入MQTT.FX设置的SSL/TLS总对应的2,3,4位置.打开MQTT.FX设置连接成功,enjoy!!!!......