mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-24 20:01:06 -05:00
Because ignore_changes configuration can refer to resource arguments which are assigned sensitive values, we need to unmark the resource object before processing.
12 lines
135 B
HCL
12 lines
135 B
HCL
variable "foo" {
|
|
sensitive = true
|
|
}
|
|
|
|
resource "aws_instance" "foo" {
|
|
ami = var.foo
|
|
|
|
lifecycle {
|
|
ignore_changes = [ami]
|
|
}
|
|
}
|