This documentation is for Version 1 of the Amazon CLI only. For documentation related to Version 2 of the Amazon CLI, see the Version 2 User Guide.
Amazon CLI command examples
The code examples in this topic show you how to use the Amazon Command Line Interface with Amazon.
Basics are code examples that show you how to perform the essential operations within a service.
Actions are code excerpts from larger programs and must be run in context. While actions show you how to call individual service functions, you can see actions in context in their related scenarios.
Scenarios are code examples that show you how to accomplish specific tasks by calling multiple functions within a service or combined with other Amazon Web Services services.
Services
- ACM
- API Gateway
- API Gateway HTTP and WebSocket API
- API Gateway Management API
- App Mesh
- App Runner
- Amazon AppConfig
- Application Auto Scaling
- Application Discovery Service
- AppRegistry
- Athena
- Auto Scaling
- Auto Scaling Plans
- Amazon Backup
- Amazon Batch
- Amazon Budgets
- Amazon Chime
- Cloud Control API
- Amazon Cloud Map
- Amazon Cloud9
- Amazon CloudFormation
- CloudFront
- Amazon CloudSearch
- CloudTrail
- CloudWatch
- CloudWatch Logs
- CloudWatch Network Monitoring
- CodeArtifact
- CodeBuild
- CodeCommit
- CodeDeploy
- CodeGuru Reviewer
- CodePipeline
- AWS CodeStar Notifications
- CodeConnections
- Amazon Cognito Identity
- Amazon Cognito Identity Provider
- Amazon Comprehend
- Amazon Comprehend Medical
- Amazon Config
- Amazon Connect
- Amazon Cost and Usage Report
- Cost Explorer Service
- Firehose
- Amazon Data Lifecycle Manager
- Amazon Data Pipeline
- DataSync
- DAX
- Detective
- Device Farm
- Amazon Direct Connect
- Amazon Directory Service
- Amazon DMS
- Amazon DocumentDB
- DynamoDB
- DynamoDB Streams
- Amazon EC2
- Amazon EC2 Instance Connect
- Amazon ECR
- Amazon ECR Public
- Amazon ECS
- Amazon EFS
- Amazon EKS
- Elastic Beanstalk
- Elastic Load Balancing - Version 1
- Elastic Load Balancing - Version 2
- Elastic Transcoder
- ElastiCache
- MediaStore
- Amazon EMR
- Amazon EMR on EKS
- EventBridge
- Firewall Manager
- Amazon FIS
- Amazon GameLift
- Global Accelerator
- Amazon Glue
- GuardDuty
- Amazon Health
- HealthImaging
- HealthLake
- HealthOmics
- IAM
- IAM Access Analyzer
- Image Builder
- Incident Manager
- Incident Manager Contacts
- Amazon Inspector
- Amazon IoT
- Amazon IoT 1-Click Devices
- Amazon IoT 1-Click Projects
- Amazon IoT Analytics
- Device Advisor
- Amazon IoT data
- Amazon IoT Events
- Amazon IoT Events-Data
- Amazon IoT Greengrass
- Amazon IoT Greengrass V2
- Amazon IoT Jobs SDK release
- Amazon IoT SiteWise
- Amazon IoT Things Graph
- Amazon IoT Wireless
- Amazon IVS
- Amazon IVS Chat
- Amazon IVS Real-Time Streaming
- Amazon Kendra
- Kinesis
- Amazon KMS
- Lake Formation
- Lambda
- License Manager
- Lightsail
- Macie
- Amazon Managed Grafana
- MediaConnect
- MediaConvert
- MediaLive
- MediaPackage
- MediaPackage VOD
- MediaStore Data Plane
- MediaTailor
- MemoryDB
- Amazon MSK
- Network Manager
- Nimble Studio
- OpenSearch Service
- Amazon OpsWorks
- Amazon OpsWorks CM
- Organizations
- Amazon Outposts
- Amazon Payment Cryptography
- Amazon Payment Cryptography Data Plane
- Amazon Pinpoint
- Amazon Polly
- Amazon Price List
- Amazon Private CA
- Amazon Proton
- QLDB
- Amazon RDS
- Amazon RDS Data Service
- Amazon RDS Performance Insights
- Amazon Redshift
- Amazon Rekognition
- Amazon RAM
- Resource Explorer
- Resource Groups
- Resource Groups Tagging API
- Amazon RoboMaker
- Route 53
- Route 53 domain registration
- Route 53 Profiles
- Route 53 Resolver
- Amazon S3
- Amazon S3 Control
- S3 Glacier
- Secrets Manager
- Security Hub
- Security Lake
- Amazon Serverless Application Repository
- Service Catalog
- Service Quotas
- Amazon SES
- Shield
- Signer
- Snowball
- Amazon SNS
- Amazon SQS
- Storage Gateway
- Amazon STS
- Amazon Web Services Support
- Amazon SWF
- Systems Manager
- Amazon Textract
- Amazon Transcribe
- Amazon Translate
- Trusted Advisor
- Verified Permissions
- VPC Lattice
- Amazon WAF Classic
- Amazon WAF Classic Regional
- Amazon WAFV2
- Amazon WorkDocs
- Amazon WorkMail
- Amazon WorkMail Message Flow
- WorkSpaces
- X-Ray