github.com/gerbenjacobs/terraform@v0.9.5-0.20170630130047-e6ddd62583d8/terraform/test-fixtures/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  }