

# Integration with other Amazon services
<a name="integrations-aws"></a>

CodeDeploy is integrated with the following Amazon services:


|  |  | 
| --- |--- |
| Amazon CloudWatch |  [Amazon CloudWatch](https://docs.amazonaws.cn/AmazonCloudWatch/latest/DeveloperGuide/) is a monitoring service for Amazon cloud resources and the applications you run on Amazon. You can use Amazon CloudWatch to collect and track metrics, collect and monitor log files, and set alarms. CodeDeploy supports the following CloudWatch tools:  [\[See the AWS documentation website for more details\]](http://docs.amazonaws.cn/en_us/codedeploy/latest/userguide/integrations-aws.html)  | 
| Amazon EC2 Auto Scaling |  CodeDeploy supports [Amazon EC2 Auto Scaling](http://www.amazonaws.cn/autoscaling). This Amazon service can automatically launch Amazon EC2 instances based on criteria you specify, for example:[\[See the AWS documentation website for more details\]](http://docs.amazonaws.cn/en_us/codedeploy/latest/userguide/integrations-aws.html) You can scale out a group of Amazon EC2 instances whenever you need them and then use CodeDeploy to deploy application revisions to them automatically. Amazon EC2 Auto Scaling terminates those Amazon EC2 instances when they are no longer needed. Learn more: [\[See the AWS documentation website for more details\]](http://docs.amazonaws.cn/en_us/codedeploy/latest/userguide/integrations-aws.html)  | 
| Amazon Elastic Container Service |   You can use CodeDeploy to deploy an Amazon ECS containerized application as a task set. CodeDeploy performs a blue/green deployment by installing an updated version of the application as a new replacement task set. CodeDeploy reroutes production traffic from the original application task set to the replacement task set. The original task set is terminated after a successful deployment. For more information about Amazon ECS, see [Amazon Elastic Container Service](https://aws.amazon.com/ecs/).  You can manage the way in which traffic is shifted to the updated task set during a deployment by choosing a canary, linear, or all-at-once configuration. For more information about Amazon ECS deployments, see [Deployments on an Amazon ECS compute platform](https://docs.aws.amazon.com/en_us/codedeploy/latest/userguide/deployment-steps-ecs.html).   | 
| Amazon CloudTrail |  CodeDeploy is integrated with [Amazon CloudTrail](https://docs.amazonaws.cn/awscloudtrail/latest/userguide/). This service captures API calls made by or on behalf of CodeDeploy in your Amazon account and delivers the log files to an Amazon S3 bucket you specify. CloudTrail captures API calls from the CodeDeploy console, from CodeDeploy commands through the Amazon CLI, or from the CodeDeploy APIs directly. Using the information collected by CloudTrail, you can determine: [\[See the AWS documentation website for more details\]](http://docs.amazonaws.cn/en_us/codedeploy/latest/userguide/integrations-aws.html) Learn more: [\[See the AWS documentation website for more details\]](http://docs.amazonaws.cn/en_us/codedeploy/latest/userguide/integrations-aws.html)  | 
| Amazon Cloud9 |  [Amazon Cloud9](https://docs.amazonaws.cn/cloud9/latest/user-guide/) is an online, cloud-based integrated development environment (IDE) you can use to write, run, debug, and deploy code using just a browser from an internet-connected machine. Amazon Cloud9 includes a code editor, debugger, terminal, and essential tools, such as the Amazon CLI and Git. [\[See the AWS documentation website for more details\]](http://docs.amazonaws.cn/en_us/codedeploy/latest/userguide/integrations-aws.html) For more information about Amazon Cloud9, see [ What Is Amazon Cloud9](https://docs.amazonaws.cn/cloud9/latest/user-guide/welcom.html) and [Getting started with Amazon Cloud9](https://docs.amazonaws.cn/cloud9/latest/user-guide/get-started.html).  | 
| Amazon CodePipeline |  [Amazon CodePipeline](https://docs.amazonaws.cn/codepipeline/latest/userguide/) is a continuous delivery service you can use to model, visualize, and automate the steps required to release your software in a continuous delivery process. You can use Amazon CodePipeline to define your own release process so that the service builds, tests, and deploys your code every time there is a code change. For example, you might have three deployment groups for an application: Beta, Gamma, and Prod. You can set up a pipeline so that each time there is a change in your source code, the updates are deployed to each deployment group, one by one. You can configure Amazon CodePipeline to use CodeDeploy to deploy: [\[See the AWS documentation website for more details\]](http://docs.amazonaws.cn/en_us/codedeploy/latest/userguide/integrations-aws.html)  You can create the CodeDeploy application, deployment, and deployment group to use in a deploy action in a stage either before you create the pipeline or in the **Create Pipeline** wizard. Learn more: [\[See the AWS documentation website for more details\]](http://docs.amazonaws.cn/en_us/codedeploy/latest/userguide/integrations-aws.html)  | 
| Amazon Serverless Application Model |  Amazon Serverless Application Model (Amazon SAM) is a model to define serverless applications. It extends Amazon CloudFormation to provide a simplified way of defining Amazon Lambda functions, Amazon API Gateway APIs, and Amazon DynamoDB tables required by a serverless application. If you already use Amazon SAM, you can add deployment preferences to start using CodeDeploy to manage the way in which traffic is shifted during an Amazon Lambda application deployment. For more information, see the [Amazon Serverless Application Model](https://github.com/awslabs/serverless-application-model).  | 
| Elastic Load Balancing |  CodeDeploy supports [Elastic Load Balancing](https://docs.amazonaws.cn/ElasticLoadBalancing/latest/DeveloperGuide/elastic-load-balancing.html), a service that distributes incoming application traffic across multiple Amazon EC2 instances.  For CodeDeploy deployments, load balancers also prevent traffic from being routed to instances when they are not ready, are currently being deployed to, or are no longer needed as part of an environment. Learn more: [\[See the AWS documentation website for more details\]](http://docs.amazonaws.cn/en_us/codedeploy/latest/userguide/integrations-aws.html)  | 

**Topics**
+ [Amazon EC2 Auto Scaling](integrations-aws-auto-scaling.md)
+ [Integrating CodeDeploy with Elastic Load Balancing](integrations-aws-elastic-load-balancing.md)