Describe the feature
Add properties to L2 ecs CLuster construct to support ephemeral storage configuration
Use Case
Right now to enable this feature I need to edit the L1 construct like this:
const cfnCluster = cluster.node.defaultChild as CfnCluster;
cfnCluster.configuration = {
...cfnCluster.configuration,
managedStorageConfiguration: {
...cfnCluster.configuration,
fargateEphemeralStorageKmsKeyId: key.keyId,
},
};
and adjusting the key policy according to the developer guide.
Proposed Solution
L2 Construct should support setting the new feature of ephermal storage encryption which adds the keys + updates the key policy
Other Information
Developer Guide: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-create-storage-key.html
Ephemeral Storage Encryption: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-storage-encryption.html
Acknowledgements
CDK version used
2.147.0
Environment details (OS name and version, etc.)
Describe the feature
Add properties to L2 ecs CLuster construct to support ephemeral storage configuration
Use Case
Right now to enable this feature I need to edit the L1 construct like this:
and adjusting the key policy according to the developer guide.
Proposed Solution
L2 Construct should support setting the new feature of ephermal storage encryption which adds the keys + updates the key policy
Other Information
Developer Guide: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-create-storage-key.html
Ephemeral Storage Encryption: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-storage-encryption.html
Acknowledgements
CDK version used
2.147.0
Environment details (OS name and version, etc.)