Skip to content

Commit 9e73d77

Browse files
committed
fix Readme file
1 parent 4ff6348 commit 9e73d77

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/aws-cdk-lib/aws-ecs/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)