back
terraform {
required_providers {
aws = ">= 3.35.0"
}
}
top
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
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 "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
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