Skip to content

Latest commit

 

History

History
91 lines (68 loc) · 1.83 KB

aws_ec2_transit_gateway_route_table_association.md

File metadata and controls

91 lines (68 loc) · 1.83 KB

aws_ec2_transit_gateway_route_table_association

back

Index

Terraform

terraform {
  required_providers {
    aws = ">= 3.35.0"
  }
}

top

Example Usage

module "aws_ec2_transit_gateway_route_table_association" {
  source = "./modules/aws/r/aws_ec2_transit_gateway_route_table_association"

  # transit_gateway_attachment_id - (required) is a type of string
  transit_gateway_attachment_id = null
  # transit_gateway_route_table_id - (required) is a type of string
  transit_gateway_route_table_id = null
}

top

Variables

variable "transit_gateway_attachment_id" {
  description = "(required)"
  type        = string
}

variable "transit_gateway_route_table_id" {
  description = "(required)"
  type        = string
}

top

Resource

resource "aws_ec2_transit_gateway_route_table_association" "this" {
  # transit_gateway_attachment_id - (required) is a type of string
  transit_gateway_attachment_id = var.transit_gateway_attachment_id
  # transit_gateway_route_table_id - (required) is a type of string
  transit_gateway_route_table_id = var.transit_gateway_route_table_id
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = aws_ec2_transit_gateway_route_table_association.this.id
}

output "resource_id" {
  description = "returns a string"
  value       = aws_ec2_transit_gateway_route_table_association.this.resource_id
}

output "resource_type" {
  description = "returns a string"
  value       = aws_ec2_transit_gateway_route_table_association.this.resource_type
}

output "this" {
  value = aws_ec2_transit_gateway_route_table_association.this
}

top