Please enable JavaScript.
Coggle requires JavaScript to display documents.
EC2 (Pricing models (Spot (If terminated by AWS you not be charged for…
EC2
Pricing models
On Demand
low cost, flexibility without any up-front payment or long-term
Reserved
Steady state, predictable usage
Spot
-
If you terminate instance yourself, will be charged by any in which instance ran
-
Features
-
Security Group
-
-
All outbound traffic is allowed, all Inbound is blocked by default
-
Only can allow rule to allow traffic, not deny rule
Cant block specific IP address, instead use Network ACL
-
-
Placement Group
Type
Spread
Individual Critical EC2 instances (separate pieces of hardware, one fail isolated from other, can be same or different AZ)
-
Partitioned
Multiple EC2 instances in one partition (HDFS, HBase, Cassandra)
Clustered
low network latency/high network throughput (ec2 instances close to each other in same AZ & region) => can't span multiple AZ
-
Only some instances type can be launched in placement group: Compute/Memory/Storage Optimized, CPU...
can't merge placement groups, can't move existing instances to placement group (only can launch AMI into placement group)
Volume Type
AWS EBS-backed
-
-
Can be stopped/reboot, not lose data
To encrypt root device if it's not encrypted: Should stop EC2 -> Create snapshot -> Copy Snapshot with Encryption selected -> Create Image (AMI) -> Launch EC2 from new AMI
-
-
Termination Protection is turned off by default, need to turn on
-
-
CloudWatch
-
-
CloudWatch with ec2 monitor events 5 mins default, can be 1 mins interval when detailed monitoring turned on
CloudTrail likes CCTV (monitor traffic API call, IP...) where CloudWatch is performance monitoring (Disk, CPU usage...)
-