Description
Describe the feature
aws-eks.Cluster has some cluster props that would result in cluster replacement on prop update.
And users can hardly tell that from cdk diff
or cdk deploy
as the cluster resource is actually a custom resource and we just notice the custom resource props change in this case.
We only notice that the custom resource would change but in fact the existing cluster would be torn down and replaced, resulting data loss.

I think we should have a gatekeeper prop which default value is false
and only when you explicit set it as true
will the cluster replacement happen.
Use Case
as above
Proposed Solution
I was thinking maybe we can have a removalPolicy prop of the cluster which default to RETAIN
and the cluster replacement would only happen when the value is DESTROY
Another option is to have a replaceOnUpdate
or allowReplaceOnUpdate
prop for eks.Cluster which defaults to false
.
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
all
Environment details (OS name and version, etc.)
all
Activity