AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

LambdaDeploymentGroup

Import

import { LambdaDeploymentGroup } from 'aws-cdk-lib/aws-codedeploy';

Or use the module namespace:

import * as codedeploy from 'aws-cdk-lib/aws-codedeploy';
// codedeploy.LambdaDeploymentGroup

Properties

Configuration passed to the constructor as LambdaDeploymentGroupProps.

aliasRequired
Alias

Lambda Alias to shift traffic. Updating the version of the alias will trigger a CodeDeploy deployment. [disable-awslint:ref-via-interface] since we need to modify the alias CFN resource update policy

alarmsOptional
IAlarmRef[]

The CloudWatch alarms associated with this Deployment Group. CodeDeploy will stop (and optionally roll back) a deployment if during it any of the alarms trigger. Alarms can also be added after the Deployment Group is created using the `#addAlarm` method.

Default: []

applicationOptional
ILambdaApplication

The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.

Default: - One will be created for you.

autoRollbackOptional
AutoRollbackConfig

The auto-rollback configuration for this Deployment Group.

Default: - default AutoRollbackConfig.

deploymentConfigOptional
ILambdaDeploymentConfig

The Deployment Configuration this Deployment Group uses.

Default: LambdaDeploymentConfig.CANARY_10PERCENT_5MINUTES

deploymentGroupNameOptional
string

The physical, human-readable name of the CodeDeploy Deployment Group.

Default: - An auto-generated name will be used.

ignoreAlarmConfigurationOptional
boolean

Whether to skip the step of checking CloudWatch alarms during the deployment process.

Default: - false

ignorePollAlarmsFailureOptional
boolean

Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.

Default: false

postHookOptional
IFunction

The Lambda function to run after traffic routing starts.

Default: - None.

preHookOptional
IFunction

The Lambda function to run before traffic routing starts.

Default: - None.

roleOptional
IRole

The service Role of this Deployment Group.

Default: - A new Role will be created.

Learn AWS the Practical Way

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

Subscribe to Newsletter