Skip to content

Commit

Permalink
docs(ecs): add ephemeral storage encryption entry to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jaecktec committed Jul 8, 2024
1 parent dab4a7c commit f0e72cd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/aws-cdk-lib/aws-ecs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,17 @@ const cluster = new ecs.Cluster(this, 'Cluster', {
});
```

To encrypt the fargate ephemeral storage configure a KMS key.
```ts
declare const key: kms.Key;

const cluster = new ecs.Cluster(this, 'Cluster', {
managedStorageConfiguration: {
fargateEphemeralStorageKmsKey: key,
},
});
```

The following code imports an existing cluster using the ARN which can be used to
import an Amazon ECS service either EC2 or Fargate.

Expand Down Expand Up @@ -1865,4 +1876,4 @@ taskDefinition.addContainer('TheContainer', {
softLimit: 128,
}],
});
```
```

0 comments on commit f0e72cd

Please sign in to comment.