Skip to content
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

Overrides doesn't work for prevent_destroy #16157

Closed
pseonghoon opened this issue Sep 22, 2017 · 4 comments
Closed

Overrides doesn't work for prevent_destroy #16157

pseonghoon opened this issue Sep 22, 2017 · 4 comments
Labels

Comments

@pseonghoon
Copy link

pseonghoon commented Sep 22, 2017

Hi there,

Overrides doesn't work for prevent_destroy.

Terraform Version

0.10.6

Terraform Configuration Files

  • a.tf
resource "aws_eip" "eip1" {
    vpc=true

    lifecycle {
      prevent_destroy=true
    }
}
  • override.tf
resource "aws_eip" "eip1" {
    vpc=true

    lifecycle {
      prevent_destroy=false
    }
}

Expected Behavior

terraform destroy command can destroy eip1 because prevent_destroy is overridden to false.

Actual Behavior

destroying eip1 is prevented by Terraform

Steps to Reproduce

  1. terraform init
  2. terraform apply
  3. terraform destroy
@jbardin jbardin added the bug label Sep 25, 2017
@whereisaaron
Copy link

whereisaaron commented Jan 31, 2018

Hi @pseonghoon prevent_destroy blocks planning immediately, with no cli, override, or interpolation workaround, see #3874, #16392, #10730, #3116, #2253.

@hashibot
Copy link
Contributor

Hello! 🤖

This issue relates to an older version of Terraform that is no longer in active development, and because the area of Terraform it relates to has changed significantly since the issue was opened we suspect that the issue is either fixed or that the circumstances around it have changed enough that we'd need an updated issue report in order to reproduce and address it.

If you're still seeing this or a similar issue in the latest version of Terraform, please do feel free to open a new bug report! Please be sure to include all of the information requested in the template, even if it might seem redundant with the information already shared in this issue, because the internal details relating to this problem are likely to be different in the current version of Terraform.

Thanks!

@whereisaaron
Copy link

This issue still applies to the very latest version of terraform. The problems with prevent_destroy blocking planning have never been addressed. Please reopen this issue. A new issue would just be a copy and paste of this one.

@ghost
Copy link

ghost commented Sep 27, 2019

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.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Sep 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants