Adding some docker and terraform to it ... wip
This commit is contained in:
17
subnets.tf
Normal file
17
subnets.tf
Normal file
@@ -0,0 +1,17 @@
|
||||
resource "aws_subnet" "subnet-uno" {
|
||||
cidr_block = "${cidrsubnet(aws_vpc.test-env.cidr_block, 3, 1)}"
|
||||
vpc_id = "${aws_vpc.test-env.id}"
|
||||
availability_zone = "us-west-2a"
|
||||
}
|
||||
|
||||
resource "aws_route_table" "route-table-test-env" {
|
||||
vpc_id = "${aws_vpc.test-env.id}"
|
||||
route {
|
||||
cidr_block = "0.0.0.0/0"
|
||||
gateway_id = "${aws_internet_gateway.test-env-gw.id}"
|
||||
}
|
||||
}
|
||||
resource "aws_route_table_association" "subnet-association" {
|
||||
subnet_id = "${aws_subnet.subnet-uno.id}"
|
||||
route_table_id = "${aws_route_table.route-table-test-env.id}"
|
||||
}
|
||||
Reference in New Issue
Block a user