50 Most-Used AWS CLI Commands and Parameters

☁️ 50 Most-Used AWS CLI Commands and Parameters

AWS Command Line Interface (AWS CLI) lets you manage Amazon Web Services from the terminal. This guide combines a practical reference table with an interactive emulator so readers can practice commands, visualize simulated resources, and reinforce learning without connecting to a real account.

Learning note: emulator output is simulated for training. Real output can vary by region, permissions, AWS CLI version, IAM policies, and existing resources.

🚀 Responsive AWS CLI Emulator

Type a command, choose a suggestion, or click “Use in Emulator” from the table. The emulator will show simulated output, guided feedback, and visual resource movement.

Challenge: run aws configure to start your session.
AWS WORKSPACE
RESOURCE SCOPE 0
aws-runbook.md0/10

AWS CLI

Free challenges are available now. Lite, Pro, and Pro Plus are prepared for future expansion.

Expected runbook commandsaws configure
Run the next command to receive guided feedback.
Run the next command to receive guided feedback.
AWS Resource VisualizerNo changes yet: run a command to move simulated resources.
WORKSPACE OUTPUTwaiting
$ Waiting for an AWS CLI command...
Run a command to see simulated AWS output here.
$ AWS CLI Emulator Ready
Tip: choose a command from the table and click "Use in Emulator".

On small screens, the table automatically becomes cards so content is not cut off.

#Command / ParameterDescriptionExampleActions
1aws configureConfigure credentials, default region, and default output format.aws configure
2aws sts get-caller-identityShow the active identity, AWS account, and ARN.aws sts get-caller-identity
3aws iam list-usersList IAM users in the account.aws iam list-users
4aws iam create-userCreate an IAM user.aws iam create-user --user-name Juan
5aws iam attach-user-policyAttach a managed policy to an IAM user.aws iam attach-user-policy --user-name Juan --policy-arn arn:aws:iam::aws:policy/ReadOnlyAccess
6aws iam list-rolesList available IAM roles.aws iam list-roles --output table
7aws s3 lsList S3 buckets or objects under an S3 path.aws s3 ls
8aws s3 mbCreate a new S3 bucket.aws s3 mb s3://mi-bucket
9aws s3 rbRemove an S3 bucket; –force also removes its content.aws s3 rb s3://mi-bucket --force
10aws s3 cpCopy files between local storage and S3, or between S3 paths.aws s3 cp archivo.txt s3://mi-bucket/
11aws s3 syncSynchronize local folders with S3, or S3 with local storage.aws s3 sync ./ s3://mi-bucket/
12aws s3api list-bucketsList buckets using the low-level S3 API.aws s3api list-buckets --query "Buckets[].Name" --output table
13aws ec2 describe-instancesList and describe EC2 instances.aws ec2 describe-instances --output table
14aws ec2 run-instancesLaunch a new EC2 instance.aws ec2 run-instances --image-id ami-12345 --count 1 --instance-type t3.micro --key-name MiLlave --security-groups default
15aws ec2 stop-instancesStop an EC2 instance.aws ec2 stop-instances --instance-ids i-1234567890abcdef0
16aws ec2 start-instancesStart a stopped EC2 instance.aws ec2 start-instances --instance-ids i-1234567890abcdef0
17aws ec2 terminate-instancesTerminate or delete an EC2 instance.aws ec2 terminate-instances --instance-ids i-1234567890abcdef0
18aws ec2 describe-volumesList EBS volumes.aws ec2 describe-volumes --output table
19aws ec2 create-volumeCreate an EBS volume.aws ec2 create-volume --size 10 --region us-east-1 --availability-zone us-east-1a --volume-type gp3
20aws ec2 attach-volumeAttach an EBS volume to an EC2 instance.aws ec2 attach-volume --volume-id vol-123456 --instance-id i-123456 --device /dev/sdf
21aws ec2 delete-volumeDelete an available EBS volume.aws ec2 delete-volume --volume-id vol-123456
22aws ec2 describe-vpcsList available VPCs.aws ec2 describe-vpcs --output table
23aws ec2 create-vpcCreate a VPC.aws ec2 create-vpc --cidr-block 10.0.0.0/16
24aws ec2 describe-security-groupsList security groups.aws ec2 describe-security-groups --output table
25aws ec2 authorize-security-group-ingressAdd an inbound rule to a security group.aws ec2 authorize-security-group-ingress --group-id sg-012345 --protocol tcp --port 80 --cidr 0.0.0.0/0
26aws rds describe-db-instancesList RDS database instances.aws rds describe-db-instances --output table
27aws rds create-db-instanceCreate an RDS database instance.aws rds create-db-instance --db-instance-identifier mi-db --db-instance-class db.t3.micro --engine mysql --allocated-storage 20 --master-username admin --master-user-password clave123
28aws rds delete-db-instanceDelete an RDS database instance.aws rds delete-db-instance --db-instance-identifier mi-db --skip-final-snapshot
29aws lambda list-functionsList Lambda functions.aws lambda list-functions --output table
30aws lambda create-functionCreate a Lambda function.aws lambda create-function --function-name MiFuncion --runtime python3.12 --role arn:aws:iam::123:role/lambda-role --handler index.handler --zip-file fileb://function.zip
31aws lambda invokeInvoke a Lambda function.aws lambda invoke --function-name MiFuncion output.json
32aws logs describe-log-groupsList CloudWatch log groups.aws logs describe-log-groups --log-group-name-prefix /aws/lambda
33aws cloudformation deployDeploy a CloudFormation template.aws cloudformation deploy --template-file template.yml --stack-name MiStack
34aws cloudformation describe-stacksDescribe CloudFormation stacks.aws cloudformation describe-stacks --stack-name MiStack
35aws cloudformation delete-stackDelete a CloudFormation stack.aws cloudformation delete-stack --stack-name MiStack
36aws cloudwatch list-metricsList available CloudWatch metrics.aws cloudwatch list-metrics --namespace AWS/EC2
37aws cloudwatch get-metric-statisticsGet statistics for a metric.aws cloudwatch get-metric-statistics --metric-name CPUUtilization --start-time 2026-06-01T00:00:00Z --end-time 2026-06-02T00:00:00Z --period 3600 --namespace AWS/EC2 --statistics Average --dimensions Name=InstanceId,Value=i-123456
38aws dynamodb list-tablesList DynamoDB tables.aws dynamodb list-tables
39aws dynamodb create-tableCreate a DynamoDB table.aws dynamodb create-table --table-name MiTabla --attribute-definitions AttributeName=ID,AttributeType=S --key-schema AttributeName=ID,KeyType=HASH --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5
40aws dynamodb put-itemInsert an item into DynamoDB.aws dynamodb put-item --table-name MiTabla --item '{"ID": {"S": "123"}, "Nombre": {"S": "Juan"}}'
41aws eks list-clustersList EKS clusters.aws eks list-clusters
42aws eks update-kubeconfigUpdate kubeconfig to connect to an EKS cluster.aws eks update-kubeconfig --region us-east-1 --name eks-demo
43aws ecr get-login-passwordGet a login token for Amazon ECR.aws ecr get-login-password --region us-east-1
44aws ecr describe-repositoriesList ECR repositories.aws ecr describe-repositories --output table
45aws ecs list-clustersList ECS clusters.aws ecs list-clusters
46aws ecs list-servicesList services inside an ECS cluster.aws ecs list-services --cluster ecs-demo
47aws ecs update-serviceUpdate an ECS service and optionally force a new deployment.aws ecs update-service --cluster ecs-demo --service web --force-new-deployment
48--regionSpecify the AWS region for a command.aws s3 ls --region us-east-1
49--profileUse a locally configured credential profile.aws s3 ls --profile dev
50--query / --output / --filtersFilter results with JMESPath, change output format, and apply filters.aws ec2 describe-instances --filters "Name=instance-type,Values=t3.micro" --query "Reservations[*].Instances[*].InstanceId" --output table

🧠 Conclusion

This version helps readers practice AWS CLI from WordPress without connecting to a real account. It works well for blogs, pages, free WooCommerce products, Moodle content, and micro-courses because it combines explanation, a searchable command table, quick copy buttons, guided challenges, and infrastructure-flow visualization.

error: Contenido esta Protegido