python-terrascript/docs/tutorials/variable1.tf

12 lines
185 B
HCL

provider "aws" {
region = "us-east-1"
}
variable "image_id" {
type = string
}
resource "aws_instance" "example" {
instance_type = "t2.micro"
ami = var.image_id
}