EC2 And ESB Flashcards
What is AMI
- AMI — Amazon Machine Image
- OS is defined by AMI you choose, and hardware will follow >instance type<
- AMI is a template that contains s information telling EC 2 what OS and application software to include on the root data volume of the instance
There are 4 kind/types of AMI
1. Amazon Quick Start AMI
2. AWS Marketplace AMI
3. Community AMIs
4. Private AMI’s
NOTE. A particular AMI available only in one region. AMI invoked by ID. Invocation of AMI from different region will fail. Most likely similar AMI’s will exist in different regions
Amazon Quick Start AMI
Amazon quick start AMI’s are popular choices and include various releases of Linux or Windows Server OS and some speciality images for performing common operations. These AMI’s are up to date and officially supported
AWS Marker place AMI’s
These are production ready images provided and supported by industry vendors like SApa Dan Cisco
Community AMI’s
- > 100K images are available as community AMI’s. Usually created and maintained by a specific vendor for a specific purpose/need
Private AMI’s
You can store images created from your own instances deployments as private AMI’s
Having tested and maintained own AMI makes auto-scaling easy.
- you can share images as AMI’s or import VM’s from your loc al infrastructure (by way of AWS S3) using AWS VM Import/Export tool
Instance Type
- Instance type is a hardware profile
- There ate 75 instance types
- they are organized/classified into 5 instance families
- General purpose A1, T3, T3a, T2, M6g, M5, M5a, M5n, M4
- Compute optimized - C5, C5n, C4
- Memory optimized - R5, R5a, R5n, X1e, X1, High Memory, Z1d
- Accelerated computing P3, P2, Inf1, G4, G3, F1
- Storage optimized I3, I3en, D2, H1
General purpose Instance Type
- Includes T3, T2, M5 and M4 types optimized to provided balance between compute, memory and network resources
- t2.nano - 1 vCPU and 0.5 GB of memory
- t2.2xlarge 8 vCPU and 32 GB
- t2.micro is part of free tier and is good for experimenting
M5 and M4 are recommended for many small and midsize data-centric operations- some M* instance come with their own actually physical drives attached
T.* require EBS - M5.large - 2 vCPU and 8GB memory
- m5d.metal - 96vCPU and 384 GB memory
- some M* instance come with their own actually physical drives attached
Compute optimized instance types
- depending web servers and high-end machine learning workloads
- c5.large to c5d.24xlarge - give you as much as 3.5 GHz of processor speed and strong network bandwidth
Memory optimized instance types
- work well fro intensive database, data analytics and caching operations
- X1e, X1 and R4 are available with as much s 3.9 terabytes of dynamic random-access memory (DRAM) and low-latency solid-state drive (SSD) storage volume attached
Accelerated computing
- to achieve Higher-performance graphics processing from P2, P3, G3 and F1 types
- instance type recommended for 3D virtualization, financial analysis and computational fluid dynamics
Storage Optimized instance types
- H1, I3 and D2 have large, low-latency instance storage volumes
- in case of I2en up to 60 TB of slower hard discs drive (HDD) storage
- work well with destributed file systems and heavyweight data processing applications
Tenancy
- Shared tenancy. Physical server can host other customer accounts.
- Dedicated tenancy. Dedicated to account physical host.
Placement groups
By default AWS will try to spread instance . EC2 placement group give you power to control
- Cluster
Instance are lunched in single availability zone in close proximity. Low latency and can be useful for high-performance computing
- Spread
separate instance physically across distinct hardware racks and even availability zones
- Partition
let you associate instances with each over placing them in a single partition and can be kept separate from the instances in another partitions. Dif from Spread where no instance will be together.
Resource tag
resource tags can be used to track your components in the environment
Resource take has key and optional associated volume
Key: production-server Value: server1
Key: production-server security-group1
Etc
Service lmits. How many VPC per region
Only 5 VPC per region
Service limits. Secure shells key pairs across account
5000
What is EBS
Elastic Block Store Volume
- for the most part virtualized spaces carved out of a large physical drives.
- 99.99% reliability
- multiple can be attached to an instance. But one can be attached to on instance at the time
- 4 types of EBS. Two SSD and two spinning hard drives
EBS-provisioned IOPS
- maximum IOPS/volume of 64K and maximum throughput/volume of 1,000 MB/s
EBS general-purpose SSD
- will work well for most server workloads
- 16K IOPS/volume
Throughput-Optimized HDD
- log processing and bid data operations
- only 500IOPS/volume but with 500MB/s throughput/volume cost $0.045/month
Cold HDD
- large volume of data with infrequent access 250 IOPS/volume $0.025/GB/month
- $0.1 GB/month. Ex.: 8GB boot drive cost $9.6/year
Instance Store Volumes
- attached physically to a server that host an instance
- these volumes are ephemeral
- price include din the price of the instance
- how many depends on the instance type you chose