EC2 - Elastic Compute Cloud Flashcards
What are EC2 instances composed of?
EC2 instances are composed of
1) a AMI (Amazon Machine Image) which is defined by the operating system (OS)
2) the instance size, where you define how much CPU power you want, and how much RAM you want
3) the storage
4) the Firewalls which are defined with the security groups
5) A Bootstrap Script which is called EC2 User Data.
Security Groups
Security Groups are attached to EC2 instances, and they are a Firewall outside your EC2 instances, and you can define roles about which parts and which IP can access your EC2 instance.
EC2 user Data
EC2 user data is a script that we launch at the first start of an instance, that we used to set up your EC2 to be a webserver to say hello world.
SSH
SSH is a way to start a terminal into your EC2 instances to start issuing command on port 22.
EC2 Purchasing Options
On-Demand Spot Reserved in three flavors, so Standard, Convertible, and Scheduled. Dedicated Hosts Dedicated Instances
EC2 Instance Role
Used to issue command via SSH against IAM. Link to IAM roles.