github.com/hugorut/terraform@v1.1.3/src/terraform/testdata/plan-ignore-changes-sensitive/ignore-changes-sensitive.tf (about)

     1  variable "foo" {
     2    sensitive = true
     3  }
     4  
     5  resource "aws_instance" "foo" {
     6    ami = var.foo
     7  
     8    lifecycle {
     9      ignore_changes = [ami]
    10    }
    11  }