tfwriter

Terraform HCL code generator.

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

alicloud_route_entries

back

Index

Terraform

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

top

Example Usage

module "alicloud_route_entries" {
  source = "./modules/alicloud/d/alicloud_route_entries"

  # cidr_block - (optional) is a type of string
  cidr_block = null
  # instance_id - (optional) is a type of string
  instance_id = null
  # output_file - (optional) is a type of string
  output_file = null
  # route_table_id - (required) is a type of string
  route_table_id = null
  # type - (optional) is a type of string
  type = null
}

top

Variables

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

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

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

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

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

top

Datasource

data "alicloud_route_entries" "this" {
  # cidr_block - (optional) is a type of string
  cidr_block = var.cidr_block
  # instance_id - (optional) is a type of string
  instance_id = var.instance_id
  # output_file - (optional) is a type of string
  output_file = var.output_file
  # route_table_id - (required) is a type of string
  route_table_id = var.route_table_id
  # type - (optional) is a type of string
  type = var.type
}

top

Outputs

output "entries" {
  description = "returns a list of object"
  value       = data.alicloud_route_entries.this.entries
}

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

output "this" {
  value = alicloud_route_entries.this
}

top