EC2
Elastic Compute Cloud
- allows you to rent and manage virtual servers in the cloud
elastic compute power
can grow and shrink based on the needs put on your application
where do EC2 instances run?
on physical servers in a data center. (they are not serverless)
4 ways to access instances
Instance
AWS’ version of a virtual machine
how is computing power billed for EC2?
in compute hours
750 hours per month included on the free tier plan
what are AMIs
Amazon Machine Images for launching your instance
- preconfigured linux, windows or OSX installations which can be installed at the click of a button
EC2 On Demand Pricing
fixed price, billed down to the second
when to use EC2 On Demand Pricing?
how do you reserve on demand capacity?
on demand capacity reservations
EC2 Spot Instance Pricing
which EC2 pricing model lets you save 90%
spot instances
when to use EC2 spot instance pricing?
EC2 Reserved Instances (RI)
EC2 Dedicated Host
your instance runs on your dedicated host
EC2 Savings Plans
when to use the EC2 Savings Plan?
- flexibility to change compute services, configurations, or regions
elastic load balancing
distributes incoming application traffic across multiple EC2 instances
what are 4 types of load balancers
EC2 auto scaling
adds or replaces EC2 instances automatically across AZs based on need or changing demands
horizontal scaling
“scaling out”
adding or removing instances based on need
vertical scaling
“scaling up”
adding more CPU or RAM to an instance
AWS Lambda
serverless compute service that lets you run code without managing servers or a coding environment.
functions have a 15 minute time out
benefits of Lambda