Compute Flashcards
Elastic Compute Cloud (EC2)
Provides virtual machines, referred to as EC2 instances.
You can launch instances of any size into an Availability Zone anywhere in the world.
Launch the instances from Amazon Machine Images (AMIs).
Amazon Machine Image (AMI)
A template that is used to create an EC2 instance.
Contains a Windows or Linux machine and also has some software pre-installed.
Instance Types
General purpose;
Compute optimized;
Memory optimized;
Storage optimized;
Accelerated computing;
Instance Type Naming
x#.size:
x is the family name;
# is the generation number;
Network Settings
Elastic Network Adapter (ENA): Supports network speeds of up to 100 Gbps.
Intel 82599 Virtual Function interface: Supports network speeds of up to 10 Gbps.
VPC? Subnet? Public IP address?
IAM Role
Will software on the EC2 instance need to interact with other AWS services? If yes, attach an appropriate IAM Role.
IAM Role that is attached is kept in an instance profile.
User Data Script
Used to customize the runtime environment of your instance.
Script runs the first time the instance starts.
Storage
Used to configure the root volume and any additional volumes and set up encryption if needed.
Tags
A label that you can assign to an AWS resource, consists of a key and an optional value.
It is how you can attach metadata to an EC2 instance.
Benefits include filtering, automation, cost allocation, access control.
Security Group
A set of firewall rules that control traffic to the instance.
Create rules that specify the source and which ports that network communications can use
Key Pairs
At instance launch, you specify an existing key pair or create a new key pair, to enable secure connections to the instance.
AWS stores the public key,
You store the private key;
Elastic Block Store (EBS)
Durable, block-level storage volumes.
You can stop the instance and start it again, and the data will still be there.
EC2 Instance Store
Ephemeral storage is provided on disks that are attached to the host computer where the EC2 instance is running.
If the instance stops, data stored here is deleted.
Instance Hibernation
Benefits:
Saves contents from RAM;
On instance restart, RAM contents are reloaded, previously running processes resumed.
Save cost in this state;
Prerequisites:
Only certain AMIs and only certain families support it.
Instance must have an encrypted Amazon EBS root volume and a maximum of 150GB RAM;
Hibernation must be enabled at instance launch;
Elastic IP Address
When an instance is stopped and started again, the public ipv4 address and external DNS hostname will change.
Use this if you require a persistent public IP address
Mask the failure of software or instance from your AWS account achieved by remapping the address to another instance.