

**This documentation is for Version 1 of the Amazon CLI only.**

We announced the upcoming end-of-support for the Amazon CLI version 1. We recommend that you migrate to the Amazon CLI version 2. For dates, additional details, and information on how to migrate, see the [announcement](https://amazonaws-china.com/blogs/developer/cli-v1-maintenance-mode-announcement/). For documentation related to Version 2 of the Amazon CLI, see the [Version 2 User Guide](https://docs.amazonaws.cn/cli/latest/userguide/).

# Amazon CLI with Bash script code examples
<a name="bash_code_examples"></a>

The code examples in this topic show you how to use the Amazon Command Line Interface with Bash script 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.

Some services contain additional example categories that show how to leverage libraries or functions specific to the service.

**Topics**
+ [API Gateway](bash_api-gateway_code_examples.md)
+ [Athena](bash_athena_code_examples.md)
+ [Amazon Batch](bash_batch_code_examples.md)
+ [Amazon Cloud Map](bash_servicediscovery_code_examples.md)
+ [Amazon CloudFormation](bash_cloudformation_code_examples.md)
+ [CloudFront](bash_cloudfront_code_examples.md)
+ [CloudWatch](bash_cloudwatch_code_examples.md)
+ [CloudWatch Logs](bash_cloudwatch-logs_code_examples.md)
+ [Amazon Cognito Identity Provider](bash_cognito-identity-provider_code_examples.md)
+ [Amazon Config](bash_config-service_code_examples.md)
+ [Connect Customer](bash_connect_code_examples.md)
+ [Amazon Direct Connect](bash_direct-connect_code_examples.md)
+ [Amazon DocumentDB](bash_docdb_code_examples.md)
+ [DynamoDB](bash_dynamodb_code_examples.md)
+ [Amazon EC2](bash_ec2_code_examples.md)
+ [Amazon ECR](bash_ecr_code_examples.md)
+ [Amazon ECS](bash_ecs_code_examples.md)
+ [Amazon EKS](bash_eks_code_examples.md)
+ [Elastic Load Balancing - Version 2](bash_elastic-load-balancing-v2_code_examples.md)
+ [ElastiCache](bash_elasticache_code_examples.md)
+ [Amazon EMR](bash_emr_code_examples.md)
+ [OpenSearch Service](bash_opensearch_code_examples.md)
+ [Amazon FIS](bash_fis_code_examples.md)
+ [Amazon Glue](bash_glue_code_examples.md)
+ [HealthImaging](bash_medical-imaging_code_examples.md)
+ [IAM](bash_iam_code_examples.md)
+ [Amazon IoT](bash_iot_code_examples.md)
+ [Amazon KMS](bash_kms_code_examples.md)
+ [Lambda](bash_lambda_code_examples.md)
+ [Lightsail](bash_lightsail_code_examples.md)
+ [Amazon Managed Grafana](bash_grafana_code_examples.md)
+ [MediaConnect](bash_mediaconnect_code_examples.md)
+ [Amazon MSK](bash_kafka_code_examples.md)
+ [Neptune](bash_neptune_code_examples.md)
+ [Amazon Payment Cryptography](bash_payment-cryptography_code_examples.md)
+ [Amazon Pinpoint](bash_pinpoint_code_examples.md)
+ [Amazon Polly](bash_polly_code_examples.md)
+ [Amazon RDS](bash_rds_code_examples.md)
+ [Amazon Redshift](bash_redshift_code_examples.md)
+ [Amazon S3](bash_s3_code_examples.md)
+ [SageMaker AI](bash_sagemaker_code_examples.md)
+ [Secrets Manager](bash_secrets-manager_code_examples.md)
+ [Amazon SES](bash_ses_code_examples.md)
+ [Amazon SNS](bash_sns_code_examples.md)
+ [Step Functions](bash_sfn_code_examples.md)
+ [Amazon STS](bash_sts_code_examples.md)
+ [Amazon Web Services Support](bash_support_code_examples.md)
+ [Systems Manager](bash_ssm_code_examples.md)
+ [Amazon Textract](bash_textract_code_examples.md)
+ [VPC Lattice](bash_vpc-lattice_code_examples.md)
+ [Amazon WAFV2](bash_wafv2_code_examples.md)
+ [WorkSpaces](bash_workspaces_code_examples.md)