Skip to content

Commit 1309d8c

Browse files
committed
Fix documentation error
1 parent ee7cc30 commit 1309d8c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2257,6 +2257,14 @@ service.forceNewDeployment(true);
22572257
You can also disable force new deployment by calling the method with `false`:
22582258

22592259
```ts
2260+
declare const cluster: ecs.Cluster;
2261+
declare const taskDefinition: ecs.TaskDefinition;
2262+
2263+
const service = new ecs.FargateService(this, 'Service', {
2264+
cluster,
2265+
taskDefinition,
2266+
});
2267+
22602268
// Disable force new deployment
22612269
service.forceNewDeployment(false);
22622270
```

0 commit comments

Comments
 (0)