CodeDeploy Deploy
Type: DEVRAMPS:CODEDEPLOY:DEPLOY
Category: deploy
Version: 1.0.0
Description
Deploy to EC2 Auto Scaling Groups using AWS CodeDeploy.
Deploys application bundles to EC2 instances in an Auto Scaling Group using AWS CodeDeploy. Supports blue/green and in-place deployment strategies, automatic rollback on failure, and configurable deployment configurations. The artifact must contain an appspec.yml file defining the deployment lifecycle hooks.
Parameters
Required Parameters
| Parameter | Type | Description |
|---|---|---|
application_name | string | The name of the CodeDeploy application. |
deployment_group_name | string | The name of the deployment group. |
artifact_name | string | The name of the artifact to deploy (must include appspec.yml). |
Optional Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
account_id | string | - | The AWS account ID where CodeDeploy is configured. Defaults to stage account. |
region | string | - | The AWS region. Defaults to stage region. |
deployment_config_name | string | "CodeDeployDefault.AllAtOnce" | CodeDeploy deployment configuration name (e.g., CodeDeployDefault.OneAtATime). |
timeout | integer | 60 | Deployment timeout in minutes. |
Example Usage
- type: DEVRAMPS:CODEDEPLOY:DEPLOY
name: Deploy to ASG
params:
application_name: my-application
deployment_group_name: production-group
artifact_name: app-bundle
deployment_config_name: CodeDeployDefault.AllAtOnce
timeout: 60