tfwriter

Terraform HCL code generator.

Download as .zip Download as .tar.gz View on GitHub

alicloud_vpn_route_entry

back

Index

Terraform

terraform {
  required_providers {
    alicloud = ">= 1.120.0"
  }
}

top

Example Usage

module "alicloud_vpn_route_entry" {
  source = "./modules/alicloud/r/alicloud_vpn_route_entry"

  # next_hop - (required) is a type of string
  next_hop = null
  # publish_vpc - (required) is a type of bool
  publish_vpc = null
  # route_dest - (required) is a type of string
  route_dest = null
  # vpn_gateway_id - (required) is a type of string
  vpn_gateway_id = null
  # weight - (required) is a type of number
  weight = null
}

top

Variables

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

variable "publish_vpc" {
  description = "(required)"
  type        = bool
}

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

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

variable "weight" {
  description = "(required)"
  type        = number
}

top

Resource

resource "alicloud_vpn_route_entry" "this" {
  # next_hop - (required) is a type of string
  next_hop = var.next_hop
  # publish_vpc - (required) is a type of bool
  publish_vpc = var.publish_vpc
  # route_dest - (required) is a type of string
  route_dest = var.route_dest
  # vpn_gateway_id - (required) is a type of string
  vpn_gateway_id = var.vpn_gateway_id
  # weight - (required) is a type of number
  weight = var.weight
}

top

Outputs

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

output "this" {
  value = alicloud_vpn_route_entry.this
}

top