Adding some docker and terraform to it ... wip

This commit is contained in:
Joe Tretter
2022-09-29 13:39:46 -05:00
parent e359485d94
commit b50c7e9ddc
15 changed files with 428 additions and 182 deletions

17
subnets.tf Normal file
View 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}"
}