Terraform module for AWS Route Table association between a route table and a subnet or a route table and an internet gateway or virtual private gateway.
This is a stable example. It should successfully build out of the box
This module can be used to deploy a VPC Routing Table on AWS Cloud Provider......
This module needs Terraform 0.12.23 or newer. You can download the latest Terraform version from here.
Below we are able to check the resources that are being created as part of this module call:
- Route Table Association
To use this module, add the following call to your code:
- Sample Code:
module "route_table_association" {
source = "git::https://github.com/nitinda/terraform-module-aws-route-table-association.git?ref=master"
subnet_id = var.subnet_id
route_table_id = var.route_table_id
}
module "route_table_association" {
source = "git::https://github.com/nitinda/terraform-module-aws-route-table-association.git?ref=master"
gateway_id = var.gateway_id
route_table_id = var.route_table_id
}
The variables required in order for the module to be successfully called from the deployment repository are the following:
Variable | Description | Type | Argument Status | Default Value |
---|---|---|---|---|
subnet_id | The subnet ID to create an association | string | Optional | [] |
gateway_id | The gateway ID to create an association | string | Optional | null |
route_table_id | The ID of the routing table to associate with | string | Required |
This module has the following outputs:
- id
In order for the variables to be accessed at module level please use the syntax below:
module.<module_name>.<output_variable_name>
The output variable is able to be accessed through terraform state file using the syntax below:
data.terraform_remote_state.<layer_name>.<output_variable_name>
Module maintained by Module maintained by the - Nitin Das