aws-ecs: ManagedStorageConfiguration add option to provide KMS key to encrypt managed storage besides the fargate ephemeral storage #33380
Labels
@aws-cdk/aws-ecs
Related to Amazon Elastic Container
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
The current
ManagedStorageConfiguration
interface only supports the option to encrypt the Fargate ephemeral storage while the L1 construct has the option to also add the regularkmsKeyId
to encrypt the managed storage.L2 Cluster construct:
L1 CfnCluster:
Desired outcome:
The L2 construct should have the option to provide the
kmsKeyId
property as well to avoid using the CfnCluster constructhttps://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.Cluster.html#managedstorageconfiguration
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.CfnCluster.ClusterConfigurationProperty.html
Use Case
There are two types of storages in ECS clusters that can be encrypted. The L2 construct only supports the ephemeral storage at this point.
As we are building opinionated constructs for our company, where enforcing encryption with KMS by default is one of them, I am currently unable to use the L2 construct for this.
Proposed Solution
Add kmsKeyId to the ManagedStorageConfiguration interface and the L2 construct
Other Information
No response
Acknowledgements
CDK version used
2.178.0
Environment details (OS name and version, etc.)
applies to all environments
The text was updated successfully, but these errors were encountered: