EC2
(Elastic Cloud Compute)
Compute: Closely related to CPU/RAM
Elastic Compute Cloud (EC2): AWS EC2 provides resizable compute capacity in the cloud, allowing you to run virtual servers as per your needs.
Instance Types: EC2 offers various instance types optimized for different use cases, such as general purpose, compute-optimized, memory-optimized, and GPU instances.
Pricing Models
On-Demand: Pay for computing capacity by the hour or second.
Reserved: Commit to a one or 3-year term and get a discount.
Spot: Bid for unused EC2 capacity at a reduced cost.
Savings Plans: Commit to consistent compute usage for lower prices. AMI (Amazon Machine Image): Pre-configured templates for your EC2 instances, including the operating system, application server, and applications.
Security
Security Groups: Act as a virtual firewall for your instances to control inbound and outbound traffic.
Key Pairs: These are used to access your EC2 instances via SSH or RDP securely.
Elastic IPs: These are static IP addresses that can be associated with EC2 instances. They are useful for hosting services that require a consistent IP.
Auto Scaling: Automatically adjusts the number of EC2 instances in response to changing demand, ensuring you only pay for what you need.
Elastic Load Balancing (ELB): Distributes incoming traffic across multiple EC2 instances, improving fault tolerance and availability.
EBS (Elastic Block Store): Provides persistent block storage volumes for EC2 instances, allowing data to be stored even after an instance is terminated.
Regions and Availability Zones: EC2 instances can be deployed in various geographic regions, each with multiple availability zones for high availability and fault tolerance.
Storage
Persistent Storage
- Elastic Block Storage (EBS) Volumes / Logically attached via AWS network.
- Automatically replicated.
- Encryption is available.
Ephemeral Storage - Local storage
- Physically attached to the underlying host.
- When the instance is stopped or terminated, all the data is lost.
- Rebooting will keep the data intact.