Skip to content

Latest commit

 

History

History
252 lines (208 loc) · 5.9 KB

aws_route.md

File metadata and controls

252 lines (208 loc) · 5.9 KB

aws_route

back

Index

Terraform

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

top

Example Usage

module "aws_route" {
  source = "./modules/aws/d/aws_route"

  # carrier_gateway_id - (optional) is a type of string
  carrier_gateway_id = null
  # destination_cidr_block - (optional) is a type of string
  destination_cidr_block = null
  # destination_ipv6_cidr_block - (optional) is a type of string
  destination_ipv6_cidr_block = null
  # destination_prefix_list_id - (optional) is a type of string
  destination_prefix_list_id = null
  # egress_only_gateway_id - (optional) is a type of string
  egress_only_gateway_id = null
  # gateway_id - (optional) is a type of string
  gateway_id = null
  # instance_id - (optional) is a type of string
  instance_id = null
  # local_gateway_id - (optional) is a type of string
  local_gateway_id = null
  # nat_gateway_id - (optional) is a type of string
  nat_gateway_id = null
  # network_interface_id - (optional) is a type of string
  network_interface_id = null
  # route_table_id - (required) is a type of string
  route_table_id = null
  # transit_gateway_id - (optional) is a type of string
  transit_gateway_id = null
  # vpc_peering_connection_id - (optional) is a type of string
  vpc_peering_connection_id = null
}

top

Variables

variable "carrier_gateway_id" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "destination_cidr_block" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "destination_ipv6_cidr_block" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "destination_prefix_list_id" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "egress_only_gateway_id" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "gateway_id" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "instance_id" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "local_gateway_id" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "nat_gateway_id" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "network_interface_id" {
  description = "(optional)"
  type        = string
  default     = null
}

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

variable "transit_gateway_id" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "vpc_peering_connection_id" {
  description = "(optional)"
  type        = string
  default     = null
}

top

Datasource

data "aws_route" "this" {
  # carrier_gateway_id - (optional) is a type of string
  carrier_gateway_id = var.carrier_gateway_id
  # destination_cidr_block - (optional) is a type of string
  destination_cidr_block = var.destination_cidr_block
  # destination_ipv6_cidr_block - (optional) is a type of string
  destination_ipv6_cidr_block = var.destination_ipv6_cidr_block
  # destination_prefix_list_id - (optional) is a type of string
  destination_prefix_list_id = var.destination_prefix_list_id
  # egress_only_gateway_id - (optional) is a type of string
  egress_only_gateway_id = var.egress_only_gateway_id
  # gateway_id - (optional) is a type of string
  gateway_id = var.gateway_id
  # instance_id - (optional) is a type of string
  instance_id = var.instance_id
  # local_gateway_id - (optional) is a type of string
  local_gateway_id = var.local_gateway_id
  # nat_gateway_id - (optional) is a type of string
  nat_gateway_id = var.nat_gateway_id
  # network_interface_id - (optional) is a type of string
  network_interface_id = var.network_interface_id
  # route_table_id - (required) is a type of string
  route_table_id = var.route_table_id
  # transit_gateway_id - (optional) is a type of string
  transit_gateway_id = var.transit_gateway_id
  # vpc_peering_connection_id - (optional) is a type of string
  vpc_peering_connection_id = var.vpc_peering_connection_id
}

top

Outputs

output "carrier_gateway_id" {
  description = "returns a string"
  value       = data.aws_route.this.carrier_gateway_id
}

output "destination_cidr_block" {
  description = "returns a string"
  value       = data.aws_route.this.destination_cidr_block
}

output "destination_ipv6_cidr_block" {
  description = "returns a string"
  value       = data.aws_route.this.destination_ipv6_cidr_block
}

output "destination_prefix_list_id" {
  description = "returns a string"
  value       = data.aws_route.this.destination_prefix_list_id
}

output "egress_only_gateway_id" {
  description = "returns a string"
  value       = data.aws_route.this.egress_only_gateway_id
}

output "gateway_id" {
  description = "returns a string"
  value       = data.aws_route.this.gateway_id
}

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

output "instance_id" {
  description = "returns a string"
  value       = data.aws_route.this.instance_id
}

output "local_gateway_id" {
  description = "returns a string"
  value       = data.aws_route.this.local_gateway_id
}

output "nat_gateway_id" {
  description = "returns a string"
  value       = data.aws_route.this.nat_gateway_id
}

output "network_interface_id" {
  description = "returns a string"
  value       = data.aws_route.this.network_interface_id
}

output "transit_gateway_id" {
  description = "returns a string"
  value       = data.aws_route.this.transit_gateway_id
}

output "vpc_peering_connection_id" {
  description = "returns a string"
  value       = data.aws_route.this.vpc_peering_connection_id
}

output "this" {
  value = aws_route.this
}

top