Skip to content

Latest commit

 

History

History
110 lines (85 loc) · 2.06 KB

aws_ec2_client_vpn_route.md

File metadata and controls

110 lines (85 loc) · 2.06 KB

aws_ec2_client_vpn_route

back

Index

Terraform

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

top

Example Usage

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

  # client_vpn_endpoint_id - (required) is a type of string
  client_vpn_endpoint_id = null
  # description - (optional) is a type of string
  description = null
  # destination_cidr_block - (required) is a type of string
  destination_cidr_block = null
  # target_vpc_subnet_id - (required) is a type of string
  target_vpc_subnet_id = null
}

top

Variables

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

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

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

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

top

Resource

resource "aws_ec2_client_vpn_route" "this" {
  # client_vpn_endpoint_id - (required) is a type of string
  client_vpn_endpoint_id = var.client_vpn_endpoint_id
  # description - (optional) is a type of string
  description = var.description
  # destination_cidr_block - (required) is a type of string
  destination_cidr_block = var.destination_cidr_block
  # target_vpc_subnet_id - (required) is a type of string
  target_vpc_subnet_id = var.target_vpc_subnet_id
}

top

Outputs

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

output "origin" {
  description = "returns a string"
  value       = aws_ec2_client_vpn_route.this.origin
}

output "type" {
  description = "returns a string"
  value       = aws_ec2_client_vpn_route.this.type
}

output "this" {
  value = aws_ec2_client_vpn_route.this
}

top