Ref: https://learn.cantrill.io/courses/1820301/lectures/41301620 [ASSOCIATESHARED]
DEMO: https://learn.cantrill.io/courses/1820301/lectures/41301621 [ASSOCIATESHARED] and https://learn.cantrill.io/courses/1820301/lectures/41301622 [ASSOCIATESHARED]
EC2 Service
- 🔧 EC2 is AWS's default compute service
- IaaS (Infrastructure as a Service) → OS is the unit of consumption
- Customers provision VMs, called instances
- âť—Â Instances are deployed in VPC subnets
- EC2 is private by default
- EC2 is AZ resilient
EC2 Instances
- An instance is a virtual machine (VM)
- Customer provisions OS
- RTE, DB dependencies, apps, etc can also be configured inside an instance
- Size & capabilities configured at launch time
- 💡 some capabilities can also be configured after launch
- Default billing: On-Demand Billing
- customers charged for consumed resources per unit of time (usually seconds)
- NWing: deployed in VPC subnets
- Private by default
- Public access must be configured if desired
- Storage:
- Local on-host storage (Instance Store)
- External storage via EBS (Elastic Block Store)
EC2 Instance State
- State = indication of the condition of the instance
- Three states:
- Running
- Billed for storage, CPU, NWing & memory
- Stopped
- Billed for storage
- Can be restarted
- Terminated
- Full deletion → non-reversible action
- can no longer be restarted
- No more billing/charges
- Summary diagram