View Source aws_codedeploy (aws v1.0.4)

CodeDeploy is a deployment service that automates application deployments to Amazon EC2 instances, on-premises instances running in your own facility, serverless 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. 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 CodeDeploy.

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.

CodeDeploy Components

Use the information in this guide to help you work with the following CodeDeploy components:

  • Application: A name that uniquely identifies the application you want to deploy. 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 Amazon 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 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 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 CodeDeploy deployments, to get details about a Lambda function deployment, and to get details about Amazon ECS service deployments.

CodeDeploy Information Resources

  • CodeDeploy User Guide: https://docs.aws.amazon.com/codedeploy/latest/userguide

  • CodeDeploy API Reference Guide: https://docs.aws.amazon.com/codedeploy/latest/APIReference/

  • CLI Reference for CodeDeploy: https://docs.aws.amazon.com/cli/latest/reference/deploy/index.html

  • CodeDeploy Developer Forum: https://forums.aws.amazon.com/forum.jspa?forumID=179

Summary

Functions

Adds tags to on-premises instances.

Gets information about one or more application revisions.

Gets information about one or more applications.

Gets information about one or more deployment groups.

This method works, but is deprecated.

Returns an array of one or more targets associated with a deployment.

Gets information about one or more deployments.

Gets information about one or more on-premises instances.

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.

Creates an application.
Deploys an application revision through the specified deployment group.
Creates a deployment configuration.
Creates a deployment group to which application revisions are deployed.
Deletes an application.

Deletes a deployment configuration.

Deletes a deployment group.
Deletes a GitHub account connection.

Deletes resources linked to an external ID.

Deregisters an on-premises instance.
Gets information about an application.
Gets information about an application revision.

Gets information about a deployment.

Gets information about a deployment configuration.
Gets information about a deployment group.
Gets information about an instance as part of a deployment.
Returns information about a deployment target.
Gets information about an on-premises instance.
Lists information about revisions for an application.
Lists the applications registered with the user or Amazon Web Services account.
Lists the deployment configurations with the user or Amazon Web Services account.
Lists the deployment groups for an application registered with the Amazon Web Services user or Amazon Web Services account.

The newer BatchGetDeploymentTargets should be used instead because it works with all compute types.

Returns an array of target IDs that are associated a deployment.
Lists the deployments in a deployment group for an application registered with the user or Amazon Web Services account.
Lists the names of stored connections to GitHub accounts.

Gets a list of names for one or more on-premises instances.

Returns a list of tags for the resource identified by a specified Amazon Resource Name (ARN).

Sets the result of a Lambda validation function.

Registers with CodeDeploy a revision for the specified application.

Registers an on-premises instance.

Removes one or more tags from one or more on-premises instances.
In a blue/green deployment, overrides any specified wait time and starts terminating instances immediately after the traffic routing is complete.
Attempts to stop an ongoing deployment.
Associates the list of tags in the input Tags parameter with the resource identified by the ResourceArn input parameter.

Disassociates a resource from a list of tags.

Changes the name of an application.
Changes information about a deployment group.

Functions

Link to this function

add_tags_to_on_premises_instances(Client, Input)

View Source
Adds tags to on-premises instances.
Link to this function

add_tags_to_on_premises_instances(Client, Input, Options)

View Source
Link to this function

batch_get_application_revisions(Client, Input)

View Source

Gets information about one or more application revisions.

The maximum number of application revisions that can be returned is 25.
Link to this function

batch_get_application_revisions(Client, Input, Options)

View Source
Link to this function

batch_get_applications(Client, Input)

View Source

Gets information about one or more applications.

The maximum number of applications that can be returned is 100.
Link to this function

batch_get_applications(Client, Input, Options)

View Source
Link to this function

batch_get_deployment_groups(Client, Input)

View Source
Gets information about one or more deployment groups.
Link to this function

batch_get_deployment_groups(Client, Input, Options)

View Source
Link to this function

batch_get_deployment_instances(Client, Input)

View Source

This method works, but is deprecated.

Use BatchGetDeploymentTargets instead.

Returns an array of one or more instances associated with a deployment. This method works with EC2/On-premises and Lambda compute platforms. The newer BatchGetDeploymentTargets works with all compute platforms. The maximum number of instances that can be returned is 25.
Link to this function

batch_get_deployment_instances(Client, Input, Options)

View Source
Link to this function

batch_get_deployment_targets(Client, Input)

View Source

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 Amazon EC2 instance targets.

  • 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.

Link to this function

batch_get_deployment_targets(Client, Input, Options)

View Source
Link to this function

batch_get_deployments(Client, Input)

View Source

Gets information about one or more deployments.

The maximum number of deployments that can be returned is 25.
Link to this function

batch_get_deployments(Client, Input, Options)

View Source
Link to this function

batch_get_on_premises_instances(Client, Input)

View Source

Gets information about one or more on-premises instances.

The maximum number of on-premises instances that can be returned is 25.
Link to this function

batch_get_on_premises_instances(Client, Input, Options)

View Source
Link to this function

continue_deployment(Client, Input)

View Source

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.)
Link to this function

continue_deployment(Client, Input, Options)

View Source
Link to this function

create_application(Client, Input)

View Source
Creates an application.
Link to this function

create_application(Client, Input, Options)

View Source
Link to this function

create_deployment(Client, Input)

View Source
Deploys an application revision through the specified deployment group.
Link to this function

create_deployment(Client, Input, Options)

View Source
Link to this function

create_deployment_config(Client, Input)

View Source
Creates a deployment configuration.
Link to this function

create_deployment_config(Client, Input, Options)

View Source
Link to this function

create_deployment_group(Client, Input)

View Source
Creates a deployment group to which application revisions are deployed.
Link to this function

create_deployment_group(Client, Input, Options)

View Source
Link to this function

delete_application(Client, Input)

View Source
Deletes an application.
Link to this function

delete_application(Client, Input, Options)

View Source
Link to this function

delete_deployment_config(Client, Input)

View Source

Deletes a deployment configuration.

A deployment configuration cannot be deleted if it is currently in use. Predefined configurations cannot be deleted.
Link to this function

delete_deployment_config(Client, Input, Options)

View Source
Link to this function

delete_deployment_group(Client, Input)

View Source
Deletes a deployment group.
Link to this function

delete_deployment_group(Client, Input, Options)

View Source
Link to this function

delete_git_hub_account_token(Client, Input)

View Source
Deletes a GitHub account connection.
Link to this function

delete_git_hub_account_token(Client, Input, Options)

View Source
Link to this function

delete_resources_by_external_id(Client, Input)

View Source

Deletes resources linked to an external ID.

This action only applies if you have configured blue/green deployments through CloudFormation.

It is not necessary to call this action directly. CloudFormation calls it on your behalf when it needs to delete stack resources. This action is offered publicly in case you need to delete resources to comply with General Data Protection Regulation (GDPR) requirements.
Link to this function

delete_resources_by_external_id(Client, Input, Options)

View Source
Link to this function

deregister_on_premises_instance(Client, Input)

View Source
Deregisters an on-premises instance.
Link to this function

deregister_on_premises_instance(Client, Input, Options)

View Source
Link to this function

get_application(Client, Input)

View Source
Gets information about an application.
Link to this function

get_application(Client, Input, Options)

View Source
Link to this function

get_application_revision(Client, Input)

View Source
Gets information about an application revision.
Link to this function

get_application_revision(Client, Input, Options)

View Source
Link to this function

get_deployment(Client, Input)

View Source

Gets information about a deployment.

The 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.
Link to this function

get_deployment(Client, Input, Options)

View Source
Link to this function

get_deployment_config(Client, Input)

View Source
Gets information about a deployment configuration.
Link to this function

get_deployment_config(Client, Input, Options)

View Source
Link to this function

get_deployment_group(Client, Input)

View Source
Gets information about a deployment group.
Link to this function

get_deployment_group(Client, Input, Options)

View Source
Link to this function

get_deployment_instance(Client, Input)

View Source
Gets information about an instance as part of a deployment.
Link to this function

get_deployment_instance(Client, Input, Options)

View Source
Link to this function

get_deployment_target(Client, Input)

View Source
Returns information about a deployment target.
Link to this function

get_deployment_target(Client, Input, Options)

View Source
Link to this function

get_on_premises_instance(Client, Input)

View Source
Gets information about an on-premises instance.
Link to this function

get_on_premises_instance(Client, Input, Options)

View Source
Link to this function

list_application_revisions(Client, Input)

View Source
Lists information about revisions for an application.
Link to this function

list_application_revisions(Client, Input, Options)

View Source
Link to this function

list_applications(Client, Input)

View Source
Lists the applications registered with the user or Amazon Web Services account.
Link to this function

list_applications(Client, Input, Options)

View Source
Link to this function

list_deployment_configs(Client, Input)

View Source
Lists the deployment configurations with the user or Amazon Web Services account.
Link to this function

list_deployment_configs(Client, Input, Options)

View Source
Link to this function

list_deployment_groups(Client, Input)

View Source
Lists the deployment groups for an application registered with the Amazon Web Services user or Amazon Web Services account.
Link to this function

list_deployment_groups(Client, Input, Options)

View Source
Link to this function

list_deployment_instances(Client, Input)

View Source

The newer 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 Lambda.

Lists the instance for a deployment associated with the user or Amazon Web Services account.
Link to this function

list_deployment_instances(Client, Input, Options)

View Source
Link to this function

list_deployment_targets(Client, Input)

View Source
Returns an array of target IDs that are associated a deployment.
Link to this function

list_deployment_targets(Client, Input, Options)

View Source
Link to this function

list_deployments(Client, Input)

View Source
Lists the deployments in a deployment group for an application registered with the user or Amazon Web Services account.
Link to this function

list_deployments(Client, Input, Options)

View Source
Link to this function

list_git_hub_account_token_names(Client, Input)

View Source
Lists the names of stored connections to GitHub accounts.
Link to this function

list_git_hub_account_token_names(Client, Input, Options)

View Source
Link to this function

list_on_premises_instances(Client, Input)

View Source

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.
Link to this function

list_on_premises_instances(Client, Input, Options)

View Source
Link to this function

list_tags_for_resource(Client, Input)

View Source

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.
Link to this function

list_tags_for_resource(Client, Input, Options)

View Source
Link to this function

put_lifecycle_event_hook_execution_status(Client, Input)

View Source

Sets the result of a Lambda validation function.

The function validates lifecycle hooks during a deployment that uses the Lambda or Amazon ECS compute platform. For 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 Lambda Deployment : https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html#appspec-hooks-lambda and AppSpec 'hooks' Section for an Amazon ECS Deployment: https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html#appspec-hooks-ecs.
Link to this function

put_lifecycle_event_hook_execution_status(Client, Input, Options)

View Source
Link to this function

register_application_revision(Client, Input)

View Source
Registers with CodeDeploy a revision for the specified application.
Link to this function

register_application_revision(Client, Input, Options)

View Source
Link to this function

register_on_premises_instance(Client, Input)

View Source

Registers an on-premises instance.

Only one IAM ARN (an IAM session ARN or IAM user ARN) is supported in the request. You cannot use both.
Link to this function

register_on_premises_instance(Client, Input, Options)

View Source
Link to this function

remove_tags_from_on_premises_instances(Client, Input)

View Source
Removes one or more tags from one or more on-premises instances.
Link to this function

remove_tags_from_on_premises_instances(Client, Input, Options)

View Source
Link to this function

skip_wait_time_for_instance_termination(Client, Input)

View Source
In a blue/green deployment, overrides any specified wait time and starts terminating instances immediately after the traffic routing is complete.
Link to this function

skip_wait_time_for_instance_termination(Client, Input, Options)

View Source
Link to this function

stop_deployment(Client, Input)

View Source
Attempts to stop an ongoing deployment.
Link to this function

stop_deployment(Client, Input, Options)

View Source
Link to this function

tag_resource(Client, Input)

View Source
Associates the list of tags in the input Tags parameter with the resource identified by the ResourceArn input parameter.
Link to this function

tag_resource(Client, Input, Options)

View Source
Link to this function

untag_resource(Client, Input)

View Source

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.
Link to this function

untag_resource(Client, Input, Options)

View Source
Link to this function

update_application(Client, Input)

View Source
Changes the name of an application.
Link to this function

update_application(Client, Input, Options)

View Source
Link to this function

update_deployment_group(Client, Input)

View Source
Changes information about a deployment group.
Link to this function

update_deployment_group(Client, Input, Options)

View Source