AWS CLI — Manage Cloud Infrastructure from Terminal
AWS CLI lets you control all 200+ AWS services without clicking through the console:
Setup:
```cmd
winget install Amazon.AWSCLI
aws configure
`
S3 Static Website Deployment:
```cmd
npm run build # Build your Next.js app
aws s3 sync out s3://your-bucket-name --delete # Upload to S3
aws cloudfront create-invalidation ^
--distribution-id E1ABCDEFGHIJK ^
--paths "/*" # Clear CDN cache
echo Deployed to AWS! 🚀
`
Useful AWS CLI Commands:
```cmd
aws s3 ls # List all S3 buckets
aws s3 ls s3://bucket-name # List bucket contents
aws ec2 describe-instances # List EC2 virtual machines
aws rds describe-db-instances # List RDS databases
aws lambda list-functions # List serverless functions
aws logs tail /aws/lambda/fn # Stream CloudWatch logs
`
AWS CLI is used at every major tech company — it's a key DevOps skill! ☁️
