terraform/config/testdata/validate-ignore-changes/main.tf

22 lines
292 B
Terraform
Raw Normal View History

variable "foo" {
default = "ami-abcd1234"
}
variable "bar" {
default = "t2.micro"
}
provider "aws" {
access_key = "foo"
secret_key = "bar"
}
resource aws_instance "web" {
ami = "${var.foo}"
instance_type = "${var.bar}"
lifecycle {
ignore_changes = ["*"]
}
}