-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[aws-eks] Cannot call applyRemovalPolicy on KubernetesManifest objects #9921
Comments
Interestingly, it also appears that (meshResource.node.defaultChild as cdk.CfnResource).addPropertyOverride('UpdateReplacePolicy', 'Retain');
(meshResource.node.defaultChild as cdk.CfnResource).addPropertyOverride('DeletionPolicy', 'Retain');
|
The Workaround: (meshResource.node.defaultChild?.node.defaultChild as cdk.CfnResource).addPropertyOverride(...) |
|
…esource` (aws#18052) The type of `node.defaultChild` is `KubernetesManifest` and not a `CfnResource`, preventing users from using escape hatches in the standard way. Fixes aws#9921. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
In an attempt to prevent a Kubernetes resource from being deleted during stack destruction, I tried to use the current tribal-knowledge method:
This did not work:
Environment
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: