项目作者: nitinda

项目描述 :
Terraform module for AWS VPC Routing Table association.
高级语言: HCL
项目地址: git://github.com/nitinda/terraform-module-aws-route-table-association.git
创建时间: 2020-04-14T16:15:44Z
项目社区:https://github.com/nitinda/terraform-module-aws-route-table-association

开源协议:MIT License

下载


terraform-module-aws-vpc-route-table-association

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.

_Code : Stable_

This is a stable example. It should successfully build out of the box


General

This module can be used to deploy a VPC Routing Table on AWS Cloud Provider……


Prerequisites

This module needs **_Terraform 0.12.23** or newer.
_You can download the latest Terraform version from
here.


Features Branches

Below we are able to check the resources that are being created as part of this module call:

  • Route Table Association

Usage

Using this repo

To use this module, add the following call to your code:

  • Sample Code:
  1. module "route_table_association" {
  2. source = "git::https://github.com/nitinda/terraform-module-aws-route-table-association.git?ref=master"
  3. subnet_id = var.subnet_id
  4. route_table_id = var.route_table_id
  5. }
  1. module "route_table_association" {
  2. source = "git::https://github.com/nitinda/terraform-module-aws-route-table-association.git?ref=master"
  3. gateway_id = var.gateway_id
  4. route_table_id = var.route_table_id
  5. }

Inputs

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

Outputs

General

This module has the following outputs:

  • id

Usage

In order for the variables to be accessed at module level please use the syntax below:

  1. module.<module_name>.<output_variable_name>

The output variable is able to be accessed through terraform state file using the syntax below:

  1. data.terraform_remote_state.<layer_name>.<output_variable_name>

Authors

Module maintained by Module maintained by the - Nitin Das