github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/configs/configupgrade/testdata/valid/lifecycle/want/lifecycle.tf (about)

     1  resource "test_instance" "foo" {
     2    lifecycle {
     3      create_before_destroy = true
     4      prevent_destroy       = true
     5    }
     6  }
     7  
     8  resource "test_instance" "bar" {
     9    lifecycle {
    10      ignore_changes = all
    11    }
    12  }
    13  
    14  resource "test_instance" "baz" {
    15    lifecycle {
    16      ignore_changes = [
    17        image,
    18        tags.name,
    19      ]
    20    }
    21  }
    22  
    23  resource "test_instance" "boop" {
    24    lifecycle {
    25      ignore_changes = [image]
    26    }
    27  }