github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/terraform/testdata/plan-prevent-destroy-count-bad/main.tf (about) 1 resource "aws_instance" "foo" { 2 count = "1" 3 current = "${count.index}" 4 5 lifecycle { 6 prevent_destroy = true 7 } 8 }