aws codedeploy47 CLI commands available for AWS CodeDeploy.
| Command | API Operation | Sample |
|---|---|---|
add-tags-to-on-premises-instancesAdds tags to on-premises instances. | AddTagsToOnPremisesInstances | |
batch-get-application-revisionsGets information about one or more application revisions. The maximum number of application revisions that can be returned is 25. | BatchGetApplicationRevisions | |
batch-get-applicationsGets information about one or more applications. The maximum number of applications that can be returned is 100. | BatchGetApplications | |
batch-get-deployment-groupsGets information about one or more deployment groups. | BatchGetDeploymentGroups | |
batch-get-deployment-instancesThis 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 | BatchGetDeploymentInstances | |
batch-get-deployment-targetsReturns 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' | BatchGetDeploymentTargets | |
batch-get-deploymentsGets information about one or more deployments. The maximum number of deployments that can be returned is 25. | BatchGetDeployments | |
batch-get-on-premises-instancesGets information about one or more on-premises instances. The maximum number of on-premises instances that can be returned is 25. | BatchGetOnPremisesInstances | |
continue-deploymentFor 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 | ContinueDeployment | |
create-applicationCreates an application. | CreateApplication | |
create-deploymentDeploys an application revision through the specified deployment group. | CreateDeployment | |
create-deployment-configCreates a deployment configuration. | CreateDeploymentConfig | |
create-deployment-groupCreates a deployment group to which application revisions are deployed. | CreateDeploymentGroup | |
delete-applicationDeletes an application. | DeleteApplication | |
delete-deployment-configDeletes a deployment configuration. A deployment configuration cannot be deleted if it is currently in use. Predefined configurations cannot be deleted. | DeleteDeploymentConfig | |
delete-deployment-groupDeletes a deployment group. | DeleteDeploymentGroup | |
delete-git-hub-account-tokenDeletes a GitHub account connection. | DeleteGitHubAccountToken | |
delete-resources-by-external-idDeletes 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 | DeleteResourcesByExternalId | |
deregister-on-premises-instanceDeregisters an on-premises instance. | DeregisterOnPremisesInstance | |
get-applicationGets information about an application. | GetApplication | |
get-application-revisionGets information about an application revision. | GetApplicationRevision | |
get-deploymentGets 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. | GetDeployment | |
get-deployment-configGets information about a deployment configuration. | GetDeploymentConfig | |
get-deployment-groupGets information about a deployment group. | GetDeploymentGroup | |
get-deployment-instanceGets information about an instance as part of a deployment. | GetDeploymentInstance | |
get-deployment-targetReturns information about a deployment target. | GetDeploymentTarget | |
get-on-premises-instanceGets information about an on-premises instance. | GetOnPremisesInstance | |
list-application-revisionsLists information about revisions for an application. | ListApplicationRevisions | |
list-applicationsLists the applications registered with the user or Amazon Web Services account. | ListApplications | |
list-deployment-configsLists the deployment configurations with the user or Amazon Web Services account. | ListDeploymentConfigs | |
list-deployment-groupsLists the deployment groups for an application registered with the Amazon Web Services user or Amazon Web Services account. | ListDeploymentGroups | |
list-deployment-instancesThe 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 | ListDeploymentInstances | |
list-deployment-targetsReturns an array of target IDs that are associated a deployment. | ListDeploymentTargets | |
list-deploymentsLists the deployments in a deployment group for an application registered with the user or Amazon Web Services account. | ListDeployments | |
list-git-hub-account-token-namesLists the names of stored connections to GitHub accounts. | ListGitHubAccountTokenNames | |
list-on-premises-instancesGets 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. | ListOnPremisesInstances | |
list-tags-for-resourceReturns 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. | ListTagsForResource | |
put-lifecycle-event-hook-execution-statusSets 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 | PutLifecycleEventHookExecutionStatus | |
register-application-revisionRegisters with CodeDeploy a revision for the specified application. | RegisterApplicationRevision | |
register-on-premises-instanceRegisters 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. | RegisterOnPremisesInstance | |
remove-tags-from-on-premises-instancesRemoves one or more tags from one or more on-premises instances. | RemoveTagsFromOnPremisesInstances | |
skip-wait-time-for-instance-terminationIn a blue/green deployment, overrides any specified wait time and starts terminating instances immediately after the traffic routing is complete. | SkipWaitTimeForInstanceTermination | |
stop-deploymentAttempts to stop an ongoing deployment. | StopDeployment | |
tag-resourceAssociates the list of tags in the input Tags parameter with the resource identified by the ResourceArn input parameter. | TagResource | |
untag-resourceDisassociates 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. | UntagResource | |
update-applicationChanges the name of an application. | UpdateApplication | |
update-deployment-groupChanges information about a deployment group. | UpdateDeploymentGroup |
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterCodeDeploy