Provides a resource to create an association between a subnet and routing table.
resource "aws_route_table_association" "a" {
subnet_id = "${aws_subnet.foo.id}"
route_table_id = "${aws_route_table.bar.id}"
}
The following arguments are supported:
subnet_id - (Required) The subnet ID to create an association. route_table_id - (Required) The ID of the routing table to associate with. In addition to all arguments above, the following attributes are exported:
id - The ID of the association
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/route_table_association.html