aws_code_deploy
AWS CodeDeploy is a deployment service that automates application deployments to Amazon EC2 instances, on-premises instances running in your own facility, serverless AWS Lambda functions, or applications in an Amazon ECS service.
You can deploy a nearly unlimited variety of application content, such as an updated Lambda function, updated applications in an Amazon ECS service, code, web and configuration files, executables, packages, scripts, multimedia files, and so on. AWS CodeDeploy can deploy application content stored in Amazon S3 buckets, GitHub repositories, or Bitbucket repositories. You do not need to make changes to your existing code before you can use AWS CodeDeploy.
AWS CodeDeploy makes it easier for you to rapidly release new features, helps you avoid downtime during application deployment, and handles the complexity of updating your applications, without many of the risks associated with error-prone manual deployments.
AWS CodeDeploy Components
Use the information in this guide to help you work with the following AWS CodeDeploy components:
Application: A name that uniquely identifies the application you want to deploy. AWS CodeDeploy uses this name, which functions as a container, to ensure the correct combination of revision, deployment configuration, and deployment group are referenced during a deployment.
Deployment group: A set of individual instances, CodeDeploy Lambda deployment configuration settings, or an Amazon ECS service and network details. A Lambda deployment group specifies how to route traffic to a new version of a Lambda function. An Amazon ECS deployment group specifies the service created in Amazon ECS to deploy, a load balancer, and a listener to reroute production traffic to an updated containerized application. An EC2/On-premises deployment group contains individually tagged instances, Amazon EC2 instances in Amazon EC2 Auto Scaling groups, or both. All deployment groups can specify optional trigger, alarm, and rollback settings.
Deployment configuration: A set of deployment rules and deployment success and failure conditions used by AWS CodeDeploy during a deployment.
Deployment: The process and the components used when updating a Lambda function, a containerized application in an Amazon ECS service, or of installing content on one or more instances.
Application revisions: For an AWS Lambda deployment, this is an AppSpec file that specifies the Lambda function to be updated and one or more functions to validate deployment lifecycle events. For an Amazon ECS deployment, this is an AppSpec file that specifies the Amazon ECS task definition, container, and port where production traffic is rerouted. For an EC2/On-premises deployment, this is an archive file that contains source content—source code, webpages, executable files, and deployment scripts—along with an AppSpec file. Revisions are stored in Amazon S3 buckets or GitHub repositories. For Amazon S3, a revision is uniquely identified by its Amazon S3 object key and its ETag, version, or both. For GitHub, a revision is uniquely identified by its commit ID.
This guide also contains information to help you get details about the instances in your deployments, to make on-premises instances available for AWS CodeDeploy deployments, to get details about a Lambda function deployment, and to get details about Amazon ECS service deployments.
AWS CodeDeploy Information Resources
Summary
Functions
-
add_tags_to_on_premises_instances(Client, Input)
Adds tags to on-premises instances.
- add_tags_to_on_premises_instances(Client, Input, Options)
-
batch_get_application_revisions(Client, Input)
Gets information about one or more application revisions.
- batch_get_application_revisions(Client, Input, Options)
-
batch_get_applications(Client, Input)
Gets information about one or more applications.
- batch_get_applications(Client, Input, Options)
-
batch_get_deployment_groups(Client, Input)
Gets information about one or more deployment groups.
- batch_get_deployment_groups(Client, Input, Options)
-
batch_get_deployment_instances(Client, Input)
This method works, but is deprecated. Use Returns an array of one or more instances associated with a deployment.BatchGetDeploymentTargets
instead. - batch_get_deployment_instances(Client, Input, Options)
-
batch_get_deployment_targets(Client, Input)
Returns an array of one or more targets associated with a deployment.
- batch_get_deployment_targets(Client, Input, Options)
-
batch_get_deployments(Client, Input)
Gets information about one or more deployments.
- batch_get_deployments(Client, Input, Options)
-
batch_get_on_premises_instances(Client, Input)
Gets information about one or more on-premises instances.
- batch_get_on_premises_instances(Client, Input, Options)
-
continue_deployment(Client, Input)
For a blue/green deployment, starts the process of rerouting traffic from instances in the original environment to instances in the replacement environment without waiting for a specified wait time to elapse.
- continue_deployment(Client, Input, Options)
-
create_application(Client, Input)
Creates an application.
- create_application(Client, Input, Options)
-
create_deployment(Client, Input)
Deploys an application revision through the specified deployment group.
- create_deployment(Client, Input, Options)
-
create_deployment_config(Client, Input)
Creates a deployment configuration.
- create_deployment_config(Client, Input, Options)
-
create_deployment_group(Client, Input)
Creates a deployment group to which application revisions are deployed.
- create_deployment_group(Client, Input, Options)
-
delete_application(Client, Input)
Deletes an application.
- delete_application(Client, Input, Options)
-
delete_deployment_config(Client, Input)
Deletes a deployment configuration.
- delete_deployment_config(Client, Input, Options)
-
delete_deployment_group(Client, Input)
Deletes a deployment group.
- delete_deployment_group(Client, Input, Options)
-
delete_git_hub_account_token(Client, Input)
Deletes a GitHub account connection.
- delete_git_hub_account_token(Client, Input, Options)
-
delete_resources_by_external_id(Client, Input)
Deletes resources linked to an external ID.
- delete_resources_by_external_id(Client, Input, Options)
-
deregister_on_premises_instance(Client, Input)
Deregisters an on-premises instance.
- deregister_on_premises_instance(Client, Input, Options)
-
get_application(Client, Input)
Gets information about an application.
- get_application(Client, Input, Options)
-
get_application_revision(Client, Input)
Gets information about an application revision.
- get_application_revision(Client, Input, Options)
-
get_deployment(Client, Input)
Gets information about a deployment.
- get_deployment(Client, Input, Options)
-
get_deployment_config(Client, Input)
Gets information about a deployment configuration.
- get_deployment_config(Client, Input, Options)
-
get_deployment_group(Client, Input)
Gets information about a deployment group.
- get_deployment_group(Client, Input, Options)
-
get_deployment_instance(Client, Input)
Gets information about an instance as part of a deployment.
- get_deployment_instance(Client, Input, Options)
-
get_deployment_target(Client, Input)
Returns information about a deployment target.
- get_deployment_target(Client, Input, Options)
-
get_on_premises_instance(Client, Input)
Gets information about an on-premises instance.
- get_on_premises_instance(Client, Input, Options)
-
list_application_revisions(Client, Input)
Lists information about revisions for an application.
- list_application_revisions(Client, Input, Options)
-
list_applications(Client, Input)
Lists the applications registered with the IAM user or AWS account.
- list_applications(Client, Input, Options)
-
list_deployment_configs(Client, Input)
Lists the deployment configurations with the IAM user or AWS account.
- list_deployment_configs(Client, Input, Options)
-
list_deployment_groups(Client, Input)
Lists the deployment groups for an application registered with the IAM user or AWS account.
- list_deployment_groups(Client, Input, Options)
-
list_deployment_instances(Client, Input)
The newer Lists the instance for a deployment associated with the IAM user or AWS account.BatchGetDeploymentTargets
should be used instead because it works with all compute types.ListDeploymentInstances
throws an exception if it is used with a compute platform other than EC2/On-premises or AWS Lambda. - list_deployment_instances(Client, Input, Options)
-
list_deployment_targets(Client, Input)
Returns an array of target IDs that are associated a deployment.
- list_deployment_targets(Client, Input, Options)
-
list_deployments(Client, Input)
Lists the deployments in a deployment group for an application registered with the IAM user or AWS account.
- list_deployments(Client, Input, Options)
-
list_git_hub_account_token_names(Client, Input)
Lists the names of stored connections to GitHub accounts.
- list_git_hub_account_token_names(Client, Input, Options)
-
list_on_premises_instances(Client, Input)
Gets a list of names for one or more on-premises instances.
- list_on_premises_instances(Client, Input, Options)
-
list_tags_for_resource(Client, Input)
Returns a list of tags for the resource identified by a specified Amazon Resource Name (ARN).
- list_tags_for_resource(Client, Input, Options)
-
put_lifecycle_event_hook_execution_status(Client, Input)
Sets the result of a Lambda validation function.
- put_lifecycle_event_hook_execution_status(Client, Input, Options)
-
register_application_revision(Client, Input)
Registers with AWS CodeDeploy a revision for the specified application.
- register_application_revision(Client, Input, Options)
-
register_on_premises_instance(Client, Input)
Registers an on-premises instance.
- register_on_premises_instance(Client, Input, Options)
-
remove_tags_from_on_premises_instances(Client, Input)
Removes one or more tags from one or more on-premises instances.
- remove_tags_from_on_premises_instances(Client, Input, Options)
-
skip_wait_time_for_instance_termination(Client, Input)
In a blue/green deployment, overrides any specified wait time and starts terminating instances immediately after the traffic routing is complete.
- skip_wait_time_for_instance_termination(Client, Input, Options)
-
stop_deployment(Client, Input)
Attempts to stop an ongoing deployment.
- stop_deployment(Client, Input, Options)
-
tag_resource(Client, Input)
Associates the list of tags in the input
Tags
parameter with the resource identified by theResourceArn
input parameter. - tag_resource(Client, Input, Options)
-
untag_resource(Client, Input)
Disassociates a resource from a list of tags.
- untag_resource(Client, Input, Options)
-
update_application(Client, Input)
Changes the name of an application.
- update_application(Client, Input, Options)
-
update_deployment_group(Client, Input)
Changes information about a deployment group.
- update_deployment_group(Client, Input, Options)
Functions
add_tags_to_on_premises_instances(Client, Input)
Adds tags to on-premises instances.
add_tags_to_on_premises_instances(Client, Input, Options)
batch_get_application_revisions(Client, Input)
Gets information about one or more application revisions. The maximum number of application revisions that can be returned is 25.
batch_get_application_revisions(Client, Input, Options)
batch_get_applications(Client, Input)
Gets information about one or more applications. The maximum number of applications that can be returned is 100.
batch_get_applications(Client, Input, Options)
batch_get_deployment_groups(Client, Input)
Gets information about one or more deployment groups.
batch_get_deployment_groups(Client, Input, Options)
batch_get_deployment_instances(Client, Input)
BatchGetDeploymentTargets
instead.
BatchGetDeploymentTargets
works with all
compute platforms. The maximum number of instances that can be returned is
25.
batch_get_deployment_instances(Client, Input, Options)
batch_get_deployment_targets(Client, Input)
Returns an array of one or more targets associated with a deployment.
This method works with all compute types and should be used instead of the
deprecated BatchGetDeploymentInstances
. The maximum number of
targets that can be returned is 25.
The type of targets returned depends on the deployment's compute platform or deployment method:
EC2/On-premises: Information about EC2 instance targets.
AWS Lambda: Information about Lambda functions targets.
Amazon ECS: Information about Amazon ECS service targets.
CloudFormation: Information about targets of blue/green deployments initiated by a CloudFormation stack update.
batch_get_deployment_targets(Client, Input, Options)
batch_get_deployments(Client, Input)
Gets information about one or more deployments. The maximum number of deployments that can be returned is 25.
batch_get_deployments(Client, Input, Options)
batch_get_on_premises_instances(Client, Input)
Gets information about one or more on-premises instances. The maximum number of on-premises instances that can be returned is 25.
batch_get_on_premises_instances(Client, Input, Options)
continue_deployment(Client, Input)
For a blue/green deployment, starts the process of rerouting traffic from instances in the original environment to instances in the replacement environment without waiting for a specified wait time to elapse. (Traffic rerouting, which is achieved by registering instances in the replacement environment with the load balancer, can start as soon as all instances have a status of Ready.)
continue_deployment(Client, Input, Options)
create_application(Client, Input)
Creates an application.
create_application(Client, Input, Options)
create_deployment(Client, Input)
Deploys an application revision through the specified deployment group.
create_deployment(Client, Input, Options)
create_deployment_config(Client, Input)
Creates a deployment configuration.
create_deployment_config(Client, Input, Options)
create_deployment_group(Client, Input)
Creates a deployment group to which application revisions are deployed.
create_deployment_group(Client, Input, Options)
delete_application(Client, Input)
Deletes an application.
delete_application(Client, Input, Options)
delete_deployment_config(Client, Input)
Deletes a deployment configuration.
delete_deployment_config(Client, Input, Options)
delete_deployment_group(Client, Input)
Deletes a deployment group.
delete_deployment_group(Client, Input, Options)
delete_git_hub_account_token(Client, Input)
Deletes a GitHub account connection.
delete_git_hub_account_token(Client, Input, Options)
delete_resources_by_external_id(Client, Input)
Deletes resources linked to an external ID.
delete_resources_by_external_id(Client, Input, Options)
deregister_on_premises_instance(Client, Input)
Deregisters an on-premises instance.
deregister_on_premises_instance(Client, Input, Options)
get_application(Client, Input)
Gets information about an application.
get_application(Client, Input, Options)
get_application_revision(Client, Input)
Gets information about an application revision.
get_application_revision(Client, Input, Options)
get_deployment(Client, Input)
Gets information about a deployment.
content
property of the
appSpecContent
object in the returned revision is always
null. Use GetApplicationRevision
and the sha256
property of the returned appSpecContent
object to get the
content of the deployment’s AppSpec file.
get_deployment(Client, Input, Options)
get_deployment_config(Client, Input)
Gets information about a deployment configuration.
get_deployment_config(Client, Input, Options)
get_deployment_group(Client, Input)
Gets information about a deployment group.
get_deployment_group(Client, Input, Options)
get_deployment_instance(Client, Input)
Gets information about an instance as part of a deployment.
get_deployment_instance(Client, Input, Options)
get_deployment_target(Client, Input)
Returns information about a deployment target.
get_deployment_target(Client, Input, Options)
get_on_premises_instance(Client, Input)
Gets information about an on-premises instance.
get_on_premises_instance(Client, Input, Options)
list_application_revisions(Client, Input)
Lists information about revisions for an application.
list_application_revisions(Client, Input, Options)
list_applications(Client, Input)
Lists the applications registered with the IAM user or AWS account.
list_applications(Client, Input, Options)
list_deployment_configs(Client, Input)
Lists the deployment configurations with the IAM user or AWS account.
list_deployment_configs(Client, Input, Options)
list_deployment_groups(Client, Input)
Lists the deployment groups for an application registered with the IAM user or AWS account.
list_deployment_groups(Client, Input, Options)
list_deployment_instances(Client, Input)
BatchGetDeploymentTargets
should be
used instead because it works with all compute types.
ListDeploymentInstances
throws an exception if it is used
with a compute platform other than EC2/On-premises or AWS Lambda.
list_deployment_instances(Client, Input, Options)
list_deployment_targets(Client, Input)
Returns an array of target IDs that are associated a deployment.
list_deployment_targets(Client, Input, Options)
list_deployments(Client, Input)
Lists the deployments in a deployment group for an application registered with the IAM user or AWS account.
list_deployments(Client, Input, Options)
list_git_hub_account_token_names(Client, Input)
Lists the names of stored connections to GitHub accounts.
list_git_hub_account_token_names(Client, Input, Options)
list_on_premises_instances(Client, Input)
Gets a list of names for one or more on-premises instances.
Unless otherwise specified, both registered and deregistered on-premises instance names are listed. To list only registered or deregistered on-premises instance names, use the registration status parameter.list_on_premises_instances(Client, Input, Options)
list_tags_for_resource(Client, Input)
Returns a list of tags for the resource identified by a specified Amazon Resource Name (ARN). Tags are used to organize and categorize your CodeDeploy resources.
list_tags_for_resource(Client, Input, Options)
put_lifecycle_event_hook_execution_status(Client, Input)
Sets the result of a Lambda validation function. The function
validates lifecycle hooks during a deployment that uses the AWS Lambda or
Amazon ECS compute platform. For AWS Lambda deployments, the available
lifecycle hooks are BeforeAllowTraffic
and
AfterAllowTraffic
. For Amazon ECS deployments, the available
lifecycle hooks are BeforeInstall
, AfterInstall
,
AfterAllowTestTraffic
, BeforeAllowTraffic
, and
AfterAllowTraffic
. Lambda validation functions return
Succeeded
or Failed
. For more information, see
AppSpec
'hooks' Section for an AWS Lambda Deployment and AppSpec
'hooks' Section for an Amazon ECS Deployment.
put_lifecycle_event_hook_execution_status(Client, Input, Options)
register_application_revision(Client, Input)
Registers with AWS CodeDeploy a revision for the specified application.
register_application_revision(Client, Input, Options)
register_on_premises_instance(Client, Input)
Registers an on-premises instance.
register_on_premises_instance(Client, Input, Options)
remove_tags_from_on_premises_instances(Client, Input)
Removes one or more tags from one or more on-premises instances.
remove_tags_from_on_premises_instances(Client, Input, Options)
skip_wait_time_for_instance_termination(Client, Input)
In a blue/green deployment, overrides any specified wait time and starts terminating instances immediately after the traffic routing is complete.
skip_wait_time_for_instance_termination(Client, Input, Options)
stop_deployment(Client, Input)
Attempts to stop an ongoing deployment.
stop_deployment(Client, Input, Options)
tag_resource(Client, Input)
Associates the list of tags in the input Tags
parameter
with the resource identified by the ResourceArn
input
parameter.
tag_resource(Client, Input, Options)
untag_resource(Client, Input)
Disassociates a resource from a list of tags. The resource is
identified by the ResourceArn
input parameter. The tags are
identified by the list of keys in the TagKeys
input
parameter.
untag_resource(Client, Input, Options)
update_application(Client, Input)
Changes the name of an application.
update_application(Client, Input, Options)
update_deployment_group(Client, Input)
Changes information about a deployment group.