mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
22 lines
307 B
HCL
22 lines
307 B
HCL
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 = ["ami", "instance*"]
|
|
}
|
|
}
|