Provides resizable compute capacity in the cloud
Virtual machine in the cloud, boot up and down in seconds. → Quickly scale up and down
Different with traditional hardware device, pay up front
Pay as you use, pay for what you use, pay less as you use more
Pricing models
- On demand: fixed rate by the hours, seconds
- For: short term use, unpredictable workloads cannot be interrupted
- User for the first time
- Reserved: capacity reservation, contract terms are 1-3 year
- For: steady use, predictable usage
- require reserved capacity
- Standard Reserved Instance
- Convertible Reserved Instance
- Scheduled Reserved Instance
- Spot: when AWS has an ecceed resource, they drop the price. You can bid price you want to use, great saving if application have flexible start and end time
- If terminated by EC2, you will not be charged for a partial hour of usage
- If terminated by yourself, charged for any hour which instance ran
- Dedicated Hosts: physical EC2 server, can help reduce cost by allowing to use your existing server-bound software license
- For: goverment, regulatory requirement
- Termination Protection is turned off by default, you must turn it on
- On an EBS-backed instance, the default action is for the root EBS volume to be deleted when the instance is terminated
- EBS Root volumes of default AMI's CAN be encrypted
Security Groups
Change rules in security groups, it take effect immediately (eg: remote http port)
Delete all rules in Outbound, → still works, why?
- Security Groups is stateful, whenever create rule in Inbound, Outbound is create automatically
- In the setting, can't block port, IP address → use Network Access Control Lists
- All inbound traffic is blocked by default
- All outbound traffic is allowed