#Amazon Web Services (AWS)

AWS is the largest cloud provider with the most services.


#Core Services

ServicePurpose
EC2Virtual servers
S3Object storage
RDSManaged databases
LambdaServerless functions
EKSKubernetes
VPCVirtual network
IAMIdentity management

#AWS CLI

bash
1# Install
2curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
3unzip awscliv2.zip
4sudo ./aws/install
5
6# Configure
7aws configure
8
9# EC2 examples
10aws ec2 describe-instances
11aws ec2 run-instances --image-id ami-xxx --instance-type t2.micro
12
13# S3 examples
14aws s3 ls
15aws s3 cp file.txt s3://my-bucket/
16aws s3 sync ./dir s3://my-bucket/dir

#IAM Best Practices

  1. Never use root account
  2. Enable MFA
  3. Use IAM roles for services
  4. Apply least privilege
  5. Rotate access keys regularly

#Free Tier

  • 750 hours EC2 t2.micro
  • 5GB S3
  • 750 hours RDS
  • 1 million Lambda requests

[!TIP] Pro Tip: Use AWS Organizations for multi-account management!