Use these actions to deploy application revisions, poll deployment status, advance blue/green wait points, register and inspect revisions, and configure deployment groups directly from a workflow.
Important
AWS CodeDeploy's boto3 client uses camelCase parameter names (for example, applicationName, deploymentGroupName, revision). This differs from most other AWS services that use PascalCase. Use the exact casing shown in the inputs tables below.
Prerequisites
For prerequisites and credentials setup, see Set up AWS credentials.
All CodeDeploy actions accept the same auth inputs. Use awsRoleArn (recommended) or the access key pair (awsAccessKeyId and awsSecretAccessKey). Note that awsRoleArn must be a literal ARN — secret references are not supported for this input.
Conseil
We recommend using two separate IAM roles: a read-only role for the get and list actions, and a state-changing role for createDeployment, stopDeployment, registerApplicationRevision, continueDeployment, and updateDeploymentGroup. Use the awsRoleArn input per step to switch between them in a single workflow.
Shared inputs
The following inputs apply to all CodeDeploy actions. Use awsRoleArn (recommended) or the access key pair. Note that awsRoleArn must be a literal ARN — secret references are not supported for this input.
| Input | Type | Description |
|---|---|---|
awsRoleArn | String | IAM role ARN to assume for this call. Must be a literal ARN. |
awsAccessKeyId | String | AWS access key ID. Pass as a secret. |
awsSecretAccessKey | String | AWS secret access key. Pass as a secret. |
awsSessionToken | String | Temporary session token for STS authentication. Pass as a secret. |
selectors | List | JQ selectors to extract specific fields from the action output. |
IAM permissions
Each action requires a single CodeDeploy permission matching its API name. AWS provides two managed policies: AWSCodeDeployReadOnlyAccess (covers the 8 read-only actions) and AWSCodeDeployFullAccess (covers all 13). For production, use the least-privilege permissions in the following table.
Action | Required IAM permission | Additional permissions |
|---|---|---|
|
|
|
|
| None |
|
| None |
|
| None |
|
| None |
|
| None |
|
| None |
|
| None |
|
| None |
|
| None |
|
| None |
|
| None |
|
|
|
Create a deployment
Action identifier: aws.codedeploy.createDeployment
Deploys an application revision through AWS CodeDeploy. Returns the new deployment's ID immediately — this action does not wait for the deployment to finish. Use aws.codedeploy.getDeployment to poll for status.
Input | Type | Description | Example |
|---|---|---|---|
| String | Required. AWS region of the target application. |
|
| String | Required. Name of the CodeDeploy application. 1–100 characters. |
|
| String | Optional. Name of the deployment group to deploy to. |
|
| Map | Optional. The revision to deploy. One of |
|
| String | Optional. Deployment configuration to use. Defaults to the deployment group's own config. |
|
| String | Optional. A comment about the deployment. |
|
| Boolean | Optional. If |
|
| Map | Optional. Auto-rollback settings for this deployment. |
|
| Boolean | Optional. If |
|
| String | Optional. How to handle files that already exist on the instance. Allowed values: |
|
| String | Optional. |
|
| Map | Optional. Overrides the deployment group's alarm configuration for this deployment only. Requires |
|
| Map | Optional. Passthrough for any |
|
For auth and selector inputs, see Prerequisites.
Output | Type | Example |
|---|---|---|
| Object | See the create_deployment boto3 reference. Contains |
| Boolean |
|
| String | Error message on failure. |
name: deploy-application-revisiondescription: Deploy a revision to a CodeDeploy deployment groupsteps: - name: deployRevision type: action action: aws.codedeploy.createDeployment version: '1' inputs: awsRoleArn: arn:aws:iam::123456789012:role/my-workflow-role region: us-east-2 applicationName: my-codedeploy-app deploymentGroupName: my-deployment-group revision: revisionType: S3 s3Location: bucket: my-codedeploy-bucket key: app.zip bundleType: zip selectors: - name: deploymentId expression: ".response.deploymentId" next: endGet a deployment
Action identifier: aws.codedeploy.getDeployment
Returns the full details and current status of a single AWS CodeDeploy deployment by its deployment ID. Use this to poll after createDeployment until the deployment reaches a terminal status.
Input | Type | Description | Example |
|---|---|---|---|
| String | Required. AWS region of the target deployment. |
|
| String | Required. The CodeDeploy deployment ID. |
|
For auth and selector inputs, see Prerequisites.
Output | Type | Example |
|---|---|---|
| Object | See the get_deployment boto3 reference. Contains |
| Boolean |
|
| String | Error message on failure. |
name: poll-deployment-statusdescription: Check the status of a CodeDeploy deploymentsteps: - name: checkDeploymentStatus type: action action: aws.codedeploy.getDeployment version: '1' inputs: awsRoleArn: arn:aws:iam::123456789012:role/my-workflow-role region: us-east-2 deploymentId: d-ABCDEF123 selectors: - name: status expression: ".response.deploymentInfo.status" next: endStop a deployment
Action identifier: aws.codedeploy.stopDeployment
Attempts to stop an in-progress AWS CodeDeploy deployment. Optionally rolls back instances that were already updated before the stop.
Input | Type | Description | Example |
|---|---|---|---|
| String | Required. AWS region of the target deployment. |
|
| String | Required. The CodeDeploy deployment ID to stop. |
|
| Boolean | Optional. If |
|
For auth and selector inputs, see Prerequisites.
Output | Type | Example |
|---|---|---|
| Object | See the stop_deployment boto3 reference. Contains |
| Boolean |
|
| String | Error message on failure. |
name: stop-failed-deploymentdescription: Stop a CodeDeploy deployment and roll back updated instancessteps: - name: stopDeployment type: action action: aws.codedeploy.stopDeployment version: '1' inputs: awsRoleArn: arn:aws:iam::123456789012:role/my-workflow-role region: us-east-2 deploymentId: d-ABCDEF123 autoRollbackEnabled: true selectors: - name: status expression: ".response.status" next: endList deployments
Action identifier: aws.codedeploy.listDeployments
Returns AWS CodeDeploy deployment IDs for a given application and deployment group, optionally filtered by status or creation time range. The response is paginated — use nextToken from the previous response to retrieve the next page.
Important
applicationName and deploymentGroupName must be provided together or not at all. AWS rejects one without the other.
Input | Type | Description | Example |
|---|---|---|---|
| String | Required. AWS region to query. |
|
| String | Optional. Filter by application name. Must be provided together with |
|
| String | Optional. Filter by deployment group name. Must be provided together with |
|
| List | Optional. Filter by deployment status. Allowed values: |
|
| Map | Optional. Filter by creation time. Either |
|
| String | Optional. Pagination token from a previous response. Leave empty on the initial request. |
|
For auth and selector inputs, see Prerequisites.
Output | Type | Example |
|---|---|---|
| Object | See the list_deployments boto3 reference. Contains |
| Boolean |
|
| String | Error message on failure. |
name: list-failed-deploymentsdescription: List failed CodeDeploy deployments for a deployment groupsteps: - name: listFailedDeployments type: action action: aws.codedeploy.listDeployments version: '1' inputs: awsRoleArn: arn:aws:iam::123456789012:role/my-workflow-role region: us-east-2 applicationName: my-codedeploy-app deploymentGroupName: my-deployment-group includeOnlyStatuses: - Failed - Stopped selectors: - name: deployments expression: ".response.deployments" next: endContinue a deployment
Action identifier: aws.codedeploy.continueDeployment
Advances an AWS CodeDeploy blue/green deployment that is waiting at a ready point — either starting traffic rerouting (READY_WAIT) or proceeding past the termination wait (TERMINATION_WAIT). Returns an empty response on success.
Input | Type | Description | Example |
|---|---|---|---|
| String | Required. AWS region of the target deployment. |
|
| String | Required. The CodeDeploy deployment ID to advance. |
|
| String | Optional. Which wait point to advance. |
|
For auth and selector inputs, see Prerequisites.
Output | Type | Example |
|---|---|---|
| Object | See the continue_deployment boto3 reference. Returns an empty object on success. |
| Boolean |
|
| String | Error message on failure. |
name: advance-blue-green-deploymentdescription: Start traffic rerouting on a blue/green deployment at its ready wait pointsteps: - name: continueDeployment type: action action: aws.codedeploy.continueDeployment version: '1' inputs: awsRoleArn: arn:aws:iam::123456789012:role/my-workflow-role region: us-east-2 deploymentId: d-ABCDEF123 deploymentWaitType: READY_WAIT next: endList applications
Action identifier: aws.codedeploy.listApplications
Returns the AWS CodeDeploy application names registered in the given account and region. The response is paginated — use nextToken from the previous response to retrieve the next page.
Input | Type | Description | Example |
|---|---|---|---|
| String | Required. AWS region to query. |
|
| String | Optional. Pagination token from a previous response. Leave empty on the initial request. |
|
For auth and selector inputs, see Prerequisites.
Output | Type | Example |
|---|---|---|
| Object | See the list_applications boto3 reference. Contains |
| Boolean |
|
| String | Error message on failure. |
name: list-codedeploy-applicationsdescription: List all CodeDeploy applications in a regionsteps: - name: listApplications type: action action: aws.codedeploy.listApplications version: '1' inputs: awsRoleArn: arn:aws:iam::123456789012:role/my-workflow-role region: us-east-2 selectors: - name: applications expression: ".response.applications" next: endGet an application
Action identifier: aws.codedeploy.getApplication
Returns information about a single AWS CodeDeploy application by name, including its compute platform.
Input | Type | Description | Example |
|---|---|---|---|
| String | Required. AWS region of the application. |
|
| String | Required. Name of the CodeDeploy application. |
|
For auth and selector inputs, see Prerequisites.
Output | Type | Example |
|---|---|---|
| Object | See the get_application boto3 reference. Contains |
| Boolean |
|
| String | Error message on failure. |
name: get-codedeploy-applicationdescription: Get the compute platform of a CodeDeploy applicationsteps: - name: getApplication type: action action: aws.codedeploy.getApplication version: '1' inputs: awsRoleArn: arn:aws:iam::123456789012:role/my-workflow-role region: us-east-2 applicationName: my-codedeploy-app selectors: - name: computePlatform expression: ".response.application.computePlatform" next: endList deployment groups
Action identifier: aws.codedeploy.listDeploymentGroups
Returns the deployment group names for a single AWS CodeDeploy application. The response is paginated — use nextToken from the previous response to retrieve the next page.
Input | Type | Description | Example |
|---|---|---|---|
| String | Required. AWS region of the application. |
|
| String | Required. Name of the CodeDeploy application. |
|
| String | Optional. Pagination token from a previous response. Leave empty on the initial request. |
|
For auth and selector inputs, see Prerequisites.
Output | Type | Example |
|---|---|---|
| Object | See the list_deployment_groups boto3 reference. Contains |
| Boolean |
|
| String | Error message on failure. |
name: list-deployment-groupsdescription: List all deployment groups for a CodeDeploy applicationsteps: - name: listDeploymentGroups type: action action: aws.codedeploy.listDeploymentGroups version: '1' inputs: awsRoleArn: arn:aws:iam::123456789012:role/my-workflow-role region: us-east-2 applicationName: my-codedeploy-app selectors: - name: deploymentGroups expression: ".response.deploymentGroups" next: endGet a deployment group
Action identifier: aws.codedeploy.getDeploymentGroup
Returns the full configuration of a single AWS CodeDeploy deployment group, including its deployment config, tag filters, alarms, auto-rollback settings, and blue/green configuration.
Input | Type | Description | Example |
|---|---|---|---|
| String | Required. AWS region of the deployment group. |
|
| String | Required. Name of the CodeDeploy application. |
|
| String | Required. Name of the deployment group. |
|
For auth and selector inputs, see Prerequisites.
Output | Type | Example |
|---|---|---|
| Object | See the get_deployment_group boto3 reference. Contains |
| Boolean |
|
| String | Error message on failure. |
name: get-deployment-group-configdescription: Get the configuration of a CodeDeploy deployment groupsteps: - name: getDeploymentGroup type: action action: aws.codedeploy.getDeploymentGroup version: '1' inputs: awsRoleArn: arn:aws:iam::123456789012:role/my-workflow-role region: us-east-2 applicationName: my-codedeploy-app deploymentGroupName: my-deployment-group selectors: - name: deploymentConfigName expression: ".response.deploymentGroupInfo.deploymentConfigName" next: endRegister an application revision
Action identifier: aws.codedeploy.registerApplicationRevision
Registers an application revision with AWS CodeDeploy, making it available for future deployments without starting one. Returns an empty response on success.
Input | Type | Description | Example |
|---|---|---|---|
| String | Required. AWS region of the application. |
|
| String | Required. Name of the CodeDeploy application to register the revision with. |
|
| Map | Required. The revision to register. One of |
|
| String | Optional. A comment about the revision. |
|
For auth and selector inputs, see Prerequisites.
Output | Type | Example |
|---|---|---|
| Object | See the register_application_revision boto3 reference. Returns an empty object on success — AWS returns no response body for this operation. |
| Boolean |
|
| String | Error message on failure. |
name: register-application-revisiondescription: Register a new S3 revision with CodeDeploysteps: - name: registerRevision type: action action: aws.codedeploy.registerApplicationRevision version: '1' inputs: awsRoleArn: arn:aws:iam::123456789012:role/my-workflow-role region: us-east-2 applicationName: my-codedeploy-app revision: revisionType: S3 s3Location: bucket: my-codedeploy-bucket key: app.zip bundleType: zip description: Release candidate 1.2.3 next: endList application revisions
Action identifier: aws.codedeploy.listApplicationRevisions
Returns the application revisions registered with AWS CodeDeploy for a single application, with optional sort and filter. The response is paginated — use nextToken from the previous response to retrieve the next page.
Input | Type | Description | Example |
|---|---|---|---|
| String | Required. AWS region of the application. |
|
| String | Required. Name of the CodeDeploy application. |
|
| String | Optional. Sort field. Allowed values: |
|
| String | Optional. Sort direction. Allowed values: |
|
| String | Optional. Limit results to revisions in this S3 bucket. Omit to search all buckets. |
|
| String | Optional. Limit results to revisions with this S3 key prefix. |
|
| String | Optional. Filter by whether the revision is currently deployed. Allowed values: |
|
| String | Optional. Pagination token from a previous response. Leave empty on the initial request. |
|
For auth and selector inputs, see Prerequisites.
Output | Type | Example |
|---|---|---|
| Object | See the list_application_revisions boto3 reference. Contains |
| Boolean |
|
| String | Error message on failure. |
name: list-application-revisionsdescription: List the most recently registered CodeDeploy revisionssteps: - name: listRevisions type: action action: aws.codedeploy.listApplicationRevisions version: '1' inputs: awsRoleArn: arn:aws:iam::123456789012:role/my-workflow-role region: us-east-2 applicationName: my-codedeploy-app sortBy: registerTime sortOrder: descending selectors: - name: revisions expression: ".response.revisions" next: endGet an application revision
Action identifier: aws.codedeploy.getApplicationRevision
Returns information about a single application revision already registered with AWS CodeDeploy, identified by application name and revision location.
Input | Type | Description | Example |
|---|---|---|---|
| String | Required. AWS region of the application. |
|
| String | Required. Name of the CodeDeploy application. |
|
| Map | Required. The revision location to look up. One of |
|
For auth and selector inputs, see Prerequisites.
Output | Type | Example |
|---|---|---|
| Object | See the get_application_revision boto3 reference. Contains |
| Boolean |
|
| String | Error message on failure. |
name: get-application-revisiondescription: Get details of a registered CodeDeploy revisionsteps: - name: getRevision type: action action: aws.codedeploy.getApplicationRevision version: '1' inputs: awsRoleArn: arn:aws:iam::123456789012:role/my-workflow-role region: us-east-2 applicationName: my-codedeploy-app revision: revisionType: S3 s3Location: bucket: my-codedeploy-bucket key: app.zip bundleType: zip selectors: - name: revisionInfo expression: ".response.revisionInfo" next: endUpdate a deployment group
Action identifier: aws.codedeploy.updateDeploymentGroup
Changes the configuration of an existing AWS CodeDeploy deployment group — rename it, or adjust its deployment config, tag targeting, alarms, auto-rollback settings, blue/green configuration, or load balancer info. Only inputs you provide are changed; omitting an input leaves that setting unchanged.
Input | Type | Description | Example |
|---|---|---|---|
| String | Required. AWS region of the deployment group. |
|
| String | Required. Name of the CodeDeploy application. |
|
| String | Required. Current name of the deployment group to update. |
|
| String | Optional. Renames the deployment group when provided. |
|
| String | Optional. New deployment configuration name. |
|
| Map | Optional. Auto-rollback settings. Replaces the existing configuration entirely. |
|
| Map | Optional. CloudWatch alarm configuration. Replaces the existing configuration entirely. |
|
| String | Optional. New IAM role ARN for CodeDeploy to assume. Requires |
|
| List | Optional. Replaces the group's EC2 tag filters entirely. Re-supply existing filters to keep them, or pass an empty list to remove all. |
|
| List | Optional. Replaces the list of Auto Scaling groups associated with this deployment group. |
|
| Map | Optional. Deployment type and traffic control option. |
|
| Map | Optional. Blue/green deployment configuration including termination and traffic rerouting settings. |
|
| Map | Optional. Load balancer configuration for traffic shifting. |
|
| Map | Optional. Passthrough for any |
|
For auth and selector inputs, see Prerequisites.
Output | Type | Example |
|---|---|---|
| Object | See the update_deployment_group boto3 reference. Contains |
| Boolean |
|
| String | Error message on failure. |
name: enable-auto-rollbackdescription: Enable auto-rollback on a CodeDeploy deployment groupsteps: - name: updateDeploymentGroup type: action action: aws.codedeploy.updateDeploymentGroup version: '1' inputs: awsRoleArn: arn:aws:iam::123456789012:role/my-workflow-role region: us-east-2 applicationName: my-codedeploy-app currentDeploymentGroupName: my-deployment-group autoRollbackConfiguration: enabled: true events: - DEPLOYMENT_FAILURE next: end