EC2 basics Flashcards
What level of resilience does EC2 have?
Availability Zone Resilient - the instance fails if the AZ fails
What cloud service model is EC2?
IAAS - infrastructure as a service
The unit of consumption is the instance. The user manages the OS (operating system) and upwards
Is EC2 a private or public AWS service?
Private by default
Launches into a single VPC
What are the states of an EC2 instance?
Provisioning - being created
Running - instance is running
Stopped - instance is not running
Terminated - instance is shutdown (not reversible)
What are the transitions of the EC2 instance states?
Provisioning -> Running
Running -> Stopped
Stopped -> Running (instance restarted)
Stopped -> Terminated
What states of the instance are billed?
Running:
- CPU
- Memory
- Disk (EBS)
- Memory
Stopped:
- Disk (EBS) only - storage is still allocated to the instance
What is the purpose of EC2?
- Rent virtual machines (EC2)
- Store data on virtual drives (EBS)
- Distribute load across machines (ELB)
- Scale services using an auto-scaling group (ASG)
What config options are available for EC2?
- OS
- CPU
- RAM
- Storage space (EBS & EFS, EC2 Instance Store)
- Network card (ENI?)
- Firewall Rules (security group)
- Bootstrap script (EC2 User Data)
What is an EC2 User Data Script?
- A script that runs once when the instance is started
- Automates boot tasks
- Install updates
- Install Software
- download common files from the internet