File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
packages/aws-cdk-lib/aws-ecs Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -2079,10 +2079,15 @@ Amazon ECS supports native blue/green deployments that allow you to deploy new v
20792079### Using Fargate L2 constructs for Blue/Green Feature
20802080
20812081``` ts
2082- const service = new ecs .FargateService (stack , ' Service' , {
2082+ declare const cluster: ecs .Cluster ;
2083+ declare const taskDefinition: ecs .TaskDefinition ;
2084+ declare const lambdaHook: lambda .Function ;
2085+ declare const greenTargetGroup: elbv2 .ApplicationTargetGroup ;
2086+ declare const prodListenerRule: elbv2 .ApplicationListenerRule ;
2087+
2088+ const service = new ecs .FargateService (this , ' Service' , {
20832089 cluster ,
20842090 taskDefinition ,
2085- securityGroups: [ecsSecurityGroup ],
20862091 deploymentStrategy: ecs .DeploymentStrategy .BLUE_GREEN ,
20872092});
20882093
You can’t perform that action at this time.
0 commit comments