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

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

Add forget Action for removed block #125

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

Comments

@ilya-hontarau
Copy link
Contributor

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

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