Skip to main content

CodeDeploy Deploy

Stable

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

ParameterTypeDescription
application_namestringThe name of the CodeDeploy application.
deployment_group_namestringThe name of the deployment group.
artifact_namestringThe name of the artifact to deploy (must include appspec.yml).

Optional Parameters

ParameterTypeDefaultDescription
account_idstring-The AWS account ID where CodeDeploy is configured. Defaults to stage account.
regionstring-The AWS region. Defaults to stage region.
deployment_config_namestring"CodeDeployDefault.AllAtOnce"CodeDeploy deployment configuration name (e.g., CodeDeployDefault.OneAtATime).
timeoutinteger60Deployment 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