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

Add forget Action for removed block #125

Open
ilya-hontarau opened this issue May 10, 2024 · 0 comments · May be fixed by #126
Open

Add forget Action for removed block #125

ilya-hontarau opened this issue May 10, 2024 · 0 comments · May be fixed by #126

Comments

@ilya-hontarau
Copy link

Removed block introduced a new action, "forget", that is missing now
https://developer.hashicorp.com/terraform/language/resources/syntax#removing-resources

How to reproduce:
Apply pet1, then change to

# resource "random_pet" "pet1" {
#   length = 5
# }

removed {
  from = random_pet.pet1

  lifecycle {
    destroy = false
  }
}

terraform plan -out tf.plan
terraform show -json tf.plan

@ilya-hontarau ilya-hontarau linked a pull request May 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant