AwsCodeDeployEcsBlueGreenArgs

interface AwsCodeDeployEcsBlueGreenArgs { deploymentConfigName?: 'CodeDeployDefault.ECSAllAtOnce' | 'CodeDeployDefault.ECSCanary10Percent5Minutes' | 'CodeDeployDefault.ECSCanary10Percent15Minutes' | 'CodeDeployDefault.ECSLinear10PercentEvery1Minutes' | 'CodeDeployDefault.ECSLinear10PercentEvery3Minutes' | 'CodeDeployDefault.ECSLinear10PercentEvery10Minutes'; ecsService: AwsEcs; name: string; productionListener: AwsElasticloadbalancingCodeDeployListenerReferenceArgs; tags?: Input<Record<string, Input<string>>>; targetGroups: { blue: AwsElasticloadbalancingCodeDeployTargetGroupReferenceArgs; green: AwsElasticloadbalancingCodeDeployTargetGroupReferenceArgs }; terminationWaitTimeInMinutes?: number; }

Arguments for the ECS blue/green deployment capability.

Example

CODE
const ecsBlueGreen = {
  name: 'payments',
  ecsService: paymentsService,
  productionListener: applicationLoadBalancer.codeDeployListenersByKey.https!,
  targetGroups: {
    blue: blueTargetGroup.targetGroup!,
    green: greenTargetGroup.targetGroup!,
  },
};

Properties

deploymentConfigName: 'CodeDeployDefault.ECSAllAtOnce' | 'CodeDeployDefault.ECSCanary10Percent5Minutes' | 'CodeDeployDefault.ECSCanary10Percent15Minutes' | 'CodeDeployDefault.ECSLinear10PercentEvery1Minutes' | 'CodeDeployDefault.ECSLinear10PercentEvery3Minutes' | 'CodeDeployDefault.ECSLinear10PercentEvery10Minutes'

AWS-managed ECS deployment configuration.

Default: `CodeDeployDefault.ECSAllAtOnce`

ecsService: AwsEcs

ECS service component created with the CODE_DEPLOY deployment controller.

name: string

Required CodeDeploy application and deployment-group purpose used for logical and AWS naming.

productionListener: AwsElasticloadbalancingCodeDeployListenerReferenceArgs

CodeDeploy-managed ALB or NLB listener that receives production traffic.

tags: Input<Record<string, Input<string>>>

Additional tags merged with JobCloud default project and environment tags.

targetGroups: { blue: AwsElasticloadbalancingCodeDeployTargetGroupReferenceArgs; green: AwsElasticloadbalancingCodeDeployTargetGroupReferenceArgs }

Existing ELB target groups used by the original and replacement ECS task sets.

Properties

  • blue (AwsElasticloadbalancingCodeDeployTargetGroupReferenceArgs) — Target group initially associated with the original task set. It must differ from green.
  • green (AwsElasticloadbalancingCodeDeployTargetGroupReferenceArgs) — Target group used for the replacement task set. It must differ from blue.

terminationWaitTimeInMinutes: number

Minutes to retain the previous task set after a successful deployment.

Default: `0` to improve deployment speed