Why AWS?
Market Leader:
- 32% cloud market share
- 200+ fully featured services
- Used by Netflix, Airbnb, Uber, Slack, Spotify
- Most mature cloud platform
- Largest community and resources
AWS Global Infrastructure
Regions
Geographic locations (31 regions worldwide):
- us-east-1 (N. Virginia) - largest, most services
- eu-west-1 (Ireland)
- ap-northeast-1 (Tokyo)
- ap-southeast-1 (Singapore)
Availability Zones
Each region has 3+ isolated data centers
# List all regions
aws ec2 describe-regions --query 'Regions[*].[RegionName,RegionEndpoint]' --output tableAWS Core Services
Compute
EC2 - Virtual machines
aws ec2 describe-instance-types --query 'InstanceTypes[*].InstanceType' | headLambda - Serverless functions
aws lambda create-function --function-name my-func --runtime python3.9ECS/EKS - Container orchestration
aws ecs run-task --cluster my-cluster --task-definition my-taskStorage
S3 - Object storage
aws s3 mb s3://my-bucket
aws s3 cp myfile.txt s3://my-bucket/EBS - Block storage
aws ec2 create-volume --size 100 --availability-zone us-east-1aEFS - Network filesystem
aws efs create-file-system --performance-mode generalPurposeDatabase
RDS - Managed PostgreSQL, MySQL, MariaDB, Oracle
aws rds create-db-instance --db-instance-identifier mydb --db-instance-class db.t2.micro --engine postgresDynamoDB - NoSQL database
aws dynamodb create-table --table-name Users --attribute-definitions AttributeName=UserID,AttributeType=SElastiCache - Redis/Memcached
aws elasticache create-cache-cluster --cache-cluster-id my-cache --engine redisNetworking
VPC - Your private network
aws ec2 create-vpc --cidr-block 10.0.0.0/16ELB/ALB - Load balancing
aws elbv2 create-load-balancer --name my-alb --subnets subnet-123 subnet-456CloudFront - CDN
aws cloudfront create-distribution --distribution-config file://config.jsonMonitoring
CloudWatch - Metrics, logs, alarms
aws cloudwatch get-metric-statistics --namespace AWS/EC2 --metric-name CPUUtilizationCloudTrail - API audit logs
aws cloudtrail create-trail --name my-trail --s3-bucket-name audit-bucketSecurity
IAM - Identity and access management
aws iam create-user --user-name john-dev
aws iam attach-user-policy --user-name john-dev --policy-arn arn:aws:iam::aws:policy/AdministratorAccessSecrets Manager - Store secrets
aws secretsmanager create-secret --name prod/db-password --secret-string mypasswordKMS - Encryption keys
aws kms create-key --description "My encryption key"Pricing Model
Pay-As-You-Go
EC2: $0.023/hour (t2.micro)
S3: $0.023/GB stored
Data transfer: $0.09/GB out
Lambda: $0.20 per 1M requests
Reserved Instances (Discount for commitment)
1-year: ~30% discount
3-year: ~60% discount
Spot Instances (70% discount, interruptible)
Good for batch jobs, non-critical workloads