DeploymentGroup
Source:
src/AWS/CodeDeploy/DeploymentGroup.ts
An AWS CodeDeploy deployment group — the set of target instances/functions
plus the deployment configuration for one Application. For the
Lambda compute platform a group ties a service role and a deployment
config (e.g. CodeDeployDefault.LambdaAllAtOnce) to an application.
Creating a Deployment Group
Section titled “Creating a Deployment Group”const app = yield* CodeDeploy.Application("api", { computePlatform: "Lambda" });const group = yield* CodeDeploy.DeploymentGroup("prod", { applicationName: app.applicationName, serviceRoleArn: role.roleArn, deploymentConfigName: "CodeDeployDefault.LambdaAllAtOnce", deploymentStyle: { deploymentType: "BLUE_GREEN", deploymentOption: "WITH_TRAFFIC_CONTROL", }, autoRollbackConfiguration: { enabled: true, events: ["DEPLOYMENT_FAILURE"], },});