EC2 Pricing
On Demand Benefits
1) Flexible - low cost + no upfront payment/commitment
2) For Short Term, spiky or unpredictable workloads
3) For testing the water, apps being developed or tested for the first time
Reserved Instances Benefits
1) For predictable usage
2) Specific capacity requirements
3) Pay up front (helps reduce computing costs)
4) Commit to 1 or 3 years
5) Super flexible (can also use with Lambda and Fargate)
6) Can be shared across accounts with in an Organization
Types of Reserved Instances
At what level do Reserved Instance operate?
at the regional level
Spot Instances Benefits
1) Flexible - apps that have flexible start and end times
2) Cost sensitive - apps that are only feasible at low compute prices
3) Urgent Capacity - users with urgent need for large amounts of compute (Image rendering, genomic sequencing, algorithmic trading engines)
Dedicated Hosts
How can you figure out what your hypothetical infrastructure might cost?
AWS Pricing Calculator
AWS CLI Exam Tips
AWS Command Line Interface
IAM Roles
Ways IAM Roles are similar to a user
Ways IAM Roles are different from a user
Who can assume roles?
Example of using an IAM role
1) Create IAM role
2) Create EC2 instance
3) Create S3 bucket
4) Access S3 from the EC2 instance
IAM Roles Exam Tips
Bootstrap Scripts
Example of a Bootstrap Script
Security Group Exam Tips
1) Changes to security groups take effect immediately
2) you can have any number of EC2 instances within a security group
3) you can have multiple security groups attached to an EC2 instance
4) all inbound traffic is blocked by default
5) all outbound traffic is allowed.
EC2 Metadata
Data about your EC2 Instances
How do you retrieve Metadata?
with a curl call
User Data vs MetaData Exam tips
User data is bootstrap scripts
3 Types of virtual networking cards for EC2
1) ENI
2) EN
3) EFA
ENI
Elastic Networking Interface
EN
Enhanced Networking
- uses single root I/O virtualization (SR-IOV) to provide higher performance