Infrastructure
Last updated
service "name" {
infrastructure {
...
network "vpc" {
cidr_block = "10.0.0.0/16"
enable_dns_hostnames = true
enable_dns_support = true
tags = {
Name = "main-vpc"
}
resource_type = "aws_vpc"
}
compute "web_server" {
instance_type = "t2.micro"
ami = "ami-005fc0f236362e99f"
subnet_id = "${infrastructure.network.vpc.id}"
tags = {
Name = "main_web_server"
}
key_name = "cloud-cli-key"
depends_on = ["infrastructure.network.vpc"]
resource_type = "aws_instance"
}
}
...
}