-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
DeletionPolicy Attribute - Retain #902
Comments
Do we know when this going to be available? |
This is a pretty important thing to have in TF, especially for teams working with extensive data resources. Are there any updates here or is anyone specifically working on adding this yet? This has been stale for almost two years now. |
We would very much love this option as well. At the moment we are having to fudge our ci/cd deploy machines permissions so that we remove the ability for terraform to delete certain resources |
Supporting a retain lifecycle would be useful. This might also apply to AWS Elastic IP resources that are used to access services over the Public Internet. |
Long-lived databases seem like another good area for this. RDS instances, DynamoDB tables, etc. VPCs might be another resource that is long-lived in some environments and would warrant the Retain support. |
This would be useful for our deployment process. It mostly uses terraform, but it also uploads our javascript bundles to S3 with immutable filenames, which are eventually cleaned up by S3 lifecycle policies. We tried using terraform for this, but it deletes previous versions which are gone from the local filesystem, so we're currently using aws-cli instead. |
Closing this Issue in this repository. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Hi there,
Terraform Version
all
Affected Resource(s)
Please list the resources as a list, for example:
Terraform lifecycle has three attributes: create_before_destroy, prevent_destroy, ignore_changes, but doesn't support attribute
retain
which AWS CFN supported.http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html
Terraform Configuration Files
Expected Behavior
Need
retain
option works as in AWS Cloudformation. Related document is at http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.htmlActual Behavior
No this option
The text was updated successfully, but these errors were encountered: