3. AWS S3 and EC2

Note

AWS cannot delete a S3 bucket when it has some data in it
we need to empty the bucket first then delete also we will get not get the bill for empty bucket

1. What is Amazon S3?

2. Key Features

3. Amazon S3 Storage Classes

### **S3 Storage Class Comparison Chart**
Storage Class Durability Availability Use Case Example Cost Retrieval Time Additional Cost Considerations
S3 Standard 11 9s 4 9s Frequently accessed data $$$ Immediate None
S3 Intelligent-Tiering 11 9s 3 9s / 4 9s Unpredictable access patterns $$ Immediate Monitoring fee per object
S3 Standard-IA 11 9s 3 9s Infrequently accessed, rapid access $ Immediate Retrieval fees apply
S3 One Zone-IA 11 9s 2 9s Secondary backups, less critical data $ Immediate Retrieval fees and single-AZ risk
S3 Glacier 11 9s Not stated Long-term archival, flexible access $ (cheap) Minutes to hours Retrieval fees, options for expedited access
S3 Glacier Deep Archive 11 9s Not stated Rarely accessed, very long-term retention $ (cheapest) Hours to days Retrieval fees, lowest-cost storage

4. Access & URLs

Pasted image 20241121151808.png

5. Data Redundancy & Durability

6. Scaling & Performance

7. Common Use Cases

8. Amazon S3 Pricing

9. Cost Factors

Pasted image 20241121155844.png

EC2 (Elastic compute cloud)

AWS Compute Categories

Key EC2 Concepts

! 500

Steps to Launch an EC2 Instance

  1. Select an AMI: Choose a pre-built or custom AMI that matches your app requirements.
  2. Choose an Instance Type: Select based on CPU, memory, and performance needs.
  3. Configure Network Settings: Set VPC, subnet, and public IP (if needed).
  4. Attach an IAM Role (Optional): Add permissions to allow instance access to other AWS services.
  5. Add a User Data Script (Optional): Customize the instance setup, like installing software.
  6. Specify Storage: Set up root and additional volumes (EBS storage).
  7. Add Tags: Use tags to organize and identify instances for management.
  8. Configure Security Groups: Set rules for inbound/outbound traffic.
  9. Select or Create a Key Pair: Secure access to the instance using the key pair.

EC2 Instance Lifecycle States

EC2 Pricing Models

reference -

Instance Naming Convention and types

Pasted image 20241124200548.png

Note: T3 instances can burst CPU usage beyond the baseline when needed.

Pasted image 20241124200750.png

Note

EC2 is a IAAS, user has whole access to the OS

Pasted image 20241126162925.png
answer
2,3