EC2 - Elastic Compute

R, C, M, I, G, T2/T3

Ram, Cpu, Medium, IO , Gpu,  Type Burstable

Placement Groups - are specifically used for launching cluster compute instance types

·      Cluster – clusters instances into a low-latency group in a single Availability Zone; same rack; 10GB bandwidth

o  if rack fails; so do all the instances

·      Partition – spreads instances across logical partitions, ensuring that instances in one partition do not share underlying hardware with instances in other partitions

·      Spread – spreads instances across different  hardware (7 instances per group per AZ ) spans AZs

·      not applicable to T2 instances

AWS CLI or API required to deploy partitioned placement Groups

EC2 - Dedicated Hosts

·      some applications/OS require certain number of cores for compliance

Shutdown behaviour

·      can change policy to terminate the instance when shutdown is selected. If terminate protection is on , can only shutdown/terminate from the OS i.e "sudo shutdown now"

EC2 ssh connection issues

·      pem key should be 400 or could get "Unprotected Private File key Error"

·      username is incorrect "Host Key not Found"

·      Connection timeouts

o  SG not configured correctly or;

o  High CPU

Limits - AMI

·      cannot copy an encrypted AMI that was shared from a another account ( if the snapshot and encryption key was shared than you can by creating a new snapshot and encrypting with your own key

·       you can't copy the AMI with an associated BillingProduct from an account that was shared with you. You can create an EC2 instance from the AMI and then create an AMI instance from that

 

LIMITS

·      5 EIPs per account

EERORS

·      InstanceLimitExceeded Error - exceeded default limit of instances in the region (20 per account)

·      InsufficentInstanceCapacity Error - AWS has run out of on demand capacity to service the request