give everything a name.

This commit is contained in:
Joe Tretter
2022-09-30 15:59:36 -05:00
parent 9b25fa2eda
commit 3d00a07e41
4 changed files with 23 additions and 0 deletions

View File

@@ -1,10 +1,18 @@
resource "aws_subnet" "subnet-uno" {
tags = {
"Name" = "tf-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" {
tags = {
"Name" = "tf-route-table-test-env"
}
vpc_id = "${aws_vpc.test-env.id}"
route {
cidr_block = "0.0.0.0/0"