Technology Compute Flashcards
Elastic Compute Cloud
EC2
Allows you to rent and manage virtual servers in the cloud
What are EC2 instances?
The virtual servers running on physical servers
Are instances considered serverless?
NO
EC2 is a foundational service used for managing your _________ _____________
virtual
instances
What are Amazon Machine Image
AMI
A preconfigured template to launch your instance
Can you deploy your applications directly to EC2 instances ?
Yes
EC2
Free Tier plan includes
750 compute hours per month
EC2 in the real world
Mention 2 real world uses
1.-Deploy a Database
(Deploying a database to EC2 gives you full control over the database )
2.- Deploy a Web Application
(Deploy to multiple AZs to make the web application highly available )
Methods to Access an EC2 Instance
1.- AWS Mgmt Console
Config and manage your instances via a web browser
2.- EC2 Instance Connect (EIC)
EIC allow you to use IAM policies to control SSH access to your instances, removing the need to manage SSH keys
3.- Secure Shell (SSH)
SSH allows to establish a secure connection to your instance from your local laptop
4.- AWS Systems Manager
Systems Manager allows you to manage your EC2 instances via web browser or the AWS CLI
Most common vay to connect to Linux EC2 instances
Secure Shell SSH
- Generate a key pair
- -Connect via SSH
What is a key pair
Consists of a private key ( SSH Cliente on laptop )
and
a public key ( EC2 instances )
proves your identity when connecting to an EC2 instance
EC2 Pricing Options
- On-Demand
- Spot
- Reserved Instances
- Dedicated Hosts
- Saving Plans
On Demand
Fix prices, billed down to the second based on instance type. No contract and you pay only for what you use
Fun fact
You can reserve capacity using On Demand Capacity Reservations. EC2 capacity is held whether or not you run the instance
When to use on demand instances
- Care about low cost without any upfront payment or long term commitment
- Your apps have unpredictable workloads that can´t be interrupted
- -Your applications are under development
- Workloads will not run longer than a year
Spot
Let you take advantage of unused EC2 capacity. Your request is fulfilled only if capacity is available
Fun facts
- You can save up to 90% off On Demand prices
- You pay the spot price that´s in effect at the beginning of each hour
CHEAPEST OF OPTION