(CDK, KMS Keys): cannot set "pending_window_in_days" for aws_cdk.aws_kms.Key #12218
Labels
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
In aws_cdk.aws_kms.CfnKey there's a parameter called "pending_window_in_days" where you can set the amount of days before kms key deletion. However aws_cdk_aws_kms.Key does not have anything like this or an alternative to change the days before deletion below a month.
Use Case
Currently we run integration tests everyday which create a lot of stacks per day and delete them afterwards, however kms keys keep floating around for too long, causing us to reach the kms key limit, and also the costs for the kms keys for the entire month are a lot more than what we would have paid for if it deleted itself after 7 days.
Proposed Solution
Add a similiar feature to aws_cdk,aws_kms.Key to set the amount of days before a kms key gets deleted when the stack gets deleted.
Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: