| Action | Command | Details |
|---|---|---|
| Configure CLI | aws configure |
Set up access keys and region. |
| List S3 buckets | aws s3 ls |
List all S3 buckets. |
| Copy to S3 | aws s3 cp file.txt s3://bucket-name/ |
Upload file to S3. |
| Sync directory | aws s3 sync ./localdir s3://bucket-name/ |
Sync local directory to S3. |
| List EC2 instances | aws ec2 describe-instances |
List EC2 instances. |
| Start EC2 instance | aws ec2 start-instances --instance-ids i-1234567890abcdef0 |
Start EC2. |
| Stop EC2 instance | aws ec2 stop-instances --instance-ids i-1234567890abcdef0 |
Stop EC2. |
| Invoke Lambda | aws lambda invoke --function-name my-function output.txt |
Run a Lambda function. |
| Describe CloudFormation stacks | aws cloudformation describe-stacks |
List CloudFormation stacks. |
| List IAM users | aws iam list-users |
Show IAM users. |
| Create S3 bucket | aws s3 mb s3://bucket-name |
Make new S3 bucket. |