terraform-demo/modules/route-table/main.tf

24 lines
442 B
HCL

/*
.
.
*/
//public
resource "aws_route_table" "rt-tbl" {
vpc_id = var.vpc_id
tags = {
Name = "${var.tag_name}"
}
# route {
# cidr_block = "10.0.1.0/24"
# gateway_id = aws_internet_gateway.example.id
# }
# route {
# ipv6_cidr_block = "::/0"
# egress_only_gateway_id = aws_egress_only_internet_gateway.example.id
# }
}
//private