Files
opentf/terraform/testdata/plan-ignore-changes-sensitive/ignore-changes-sensitive.tf
Alisdair McDiarmid fb98fc98fa terraform: Fix sensitive values in ignore changes
Because ignore_changes configuration can refer to resource arguments
which are assigned sensitive values, we need to unmark the resource
object before processing.
2020-10-20 12:27:17 -04:00

12 lines
135 B
HCL

variable "foo" {
sensitive = true
}
resource "aws_instance" "foo" {
ami = var.foo
lifecycle {
ignore_changes = [ami]
}
}