AWS Fundamentals Logo
AWS Fundamentals
aws codedeploy

AWS AWS CodeDeploy CLI Commands

47 CLI commands available for AWS CodeDeploy.

CommandSample
add-tags-to-on-premises-instances

Adds tags to on-premises instances.

batch-get-application-revisions

Gets information about one or more application revisions. The maximum number of application revisions that can be returned is 25.

batch-get-applications

Gets information about one or more applications. The maximum number of applications that can be returned is 100.

batch-get-deployment-groups

Gets information about one or more deployment groups.

batch-get-deployment-instances

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 max

batch-get-deployment-targets

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'

batch-get-deployments

Gets information about one or more deployments. The maximum number of deployments that can be returned is 25.

batch-get-on-premises-instances

Gets information about one or more on-premises instances. The maximum number of on-premises instances that can be returned is 25.

continue-deployment

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 environme

create-application

Creates an application.

create-deployment

Deploys an application revision through the specified deployment group.

create-deployment-config

Creates a deployment configuration.

create-deployment-group

Creates a deployment group to which application revisions are deployed.

delete-application

Deletes an application.

delete-deployment-config

Deletes a deployment configuration. A deployment configuration cannot be deleted if it is currently in use. Predefined configurations cannot be deleted.

delete-deployment-group

Deletes a deployment group.

delete-git-hub-account-token

Deletes a GitHub account connection.

delete-resources-by-external-id

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 public

deregister-on-premises-instance

Deregisters an on-premises instance.

get-application

Gets information about an application.

get-application-revision

Gets information about an application revision.

get-deployment

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.

get-deployment-config

Gets information about a deployment configuration.

get-deployment-group

Gets information about a deployment group.

get-deployment-instance

Gets information about an instance as part of a deployment.

get-deployment-target

Returns information about a deployment target.

get-on-premises-instance

Gets information about an on-premises instance.

list-application-revisions

Lists information about revisions for an application.

list-applications

Lists the applications registered with the user or Amazon Web Services account.

list-deployment-configs

Lists the deployment configurations with the user or Amazon Web Services account.

list-deployment-groups

Lists the deployment groups for an application registered with the Amazon Web Services user or Amazon Web Services account.

list-deployment-instances

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

list-deployment-targets

Returns an array of target IDs that are associated a deployment.

list-deployments

Lists the deployments in a deployment group for an application registered with the user or Amazon Web Services account.

list-git-hub-account-token-names

Lists the names of stored connections to GitHub accounts.

list-on-premises-instances

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-tags-for-resource

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.

put-lifecycle-event-hook-execution-status

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 availa

register-application-revision

Registers with CodeDeploy a revision for the specified application.

register-on-premises-instance

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.

remove-tags-from-on-premises-instances

Removes one or more tags from one or more on-premises instances.

skip-wait-time-for-instance-termination

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

stop-deployment

Attempts to stop an ongoing deployment.

tag-resource

Associates the list of tags in the input Tags parameter with the resource identified by the ResourceArn input parameter.

untag-resource

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.

update-application

Changes the name of an application.

update-deployment-group

Changes information about a deployment group.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Stats

Total Commands47
ServiceCodeDeploy