Skip to content

Latest commit

 

History

History
127 lines (101 loc) · 2.33 KB

alicloud_route_entry.md

File metadata and controls

127 lines (101 loc) · 2.33 KB

alicloud_route_entry

back

Index

Terraform

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

top

Example Usage

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

  # destination_cidrblock - (optional) is a type of string
  destination_cidrblock = null
  # name - (optional) is a type of string
  name = null
  # nexthop_id - (optional) is a type of string
  nexthop_id = null
  # nexthop_type - (optional) is a type of string
  nexthop_type = null
  # route_table_id - (required) is a type of string
  route_table_id = null
  # router_id - (optional) is a type of string
  router_id = null
}

top

Variables

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

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

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

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

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

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

top

Resource

resource "alicloud_route_entry" "this" {
  # destination_cidrblock - (optional) is a type of string
  destination_cidrblock = var.destination_cidrblock
  # name - (optional) is a type of string
  name = var.name
  # nexthop_id - (optional) is a type of string
  nexthop_id = var.nexthop_id
  # nexthop_type - (optional) is a type of string
  nexthop_type = var.nexthop_type
  # route_table_id - (required) is a type of string
  route_table_id = var.route_table_id
  # router_id - (optional) is a type of string
  router_id = var.router_id
}

top

Outputs

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

output "router_id" {
  description = "returns a string"
  value       = alicloud_route_entry.this.router_id
}

output "this" {
  value = alicloud_route_entry.this
}

top