mirror of https://github.com/hashicorp/terraform
terraform test: override prevent_destroy meta attribute (#37364)
parent
ed76d19043
commit
84c2e2f9e5
@ -0,0 +1,5 @@
|
||||
kind: ENHANCEMENTS
|
||||
body: 'terraform test: ignore prevent_destroy attribute during when cleaning up tests"'
|
||||
time: 2025-07-23T14:14:20.602923+02:00
|
||||
custom:
|
||||
Issue: "37364"
|
||||
@ -0,0 +1,7 @@
|
||||
|
||||
resource "test_resource" "resource" {
|
||||
lifecycle {
|
||||
// we should still be able to destroy this during tests.
|
||||
prevent_destroy = true
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,2 @@
|
||||
|
||||
run "test" {}
|
||||
Loading…
Reference in new issue