tfwriter

Terraform HCL code generator.

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

aviatrix_vpc_tracker

back

Index

Terraform

terraform {
  required_providers {
    aviatrix = ">= 2.18.2"
  }
}

top

Example Usage

module "aviatrix_vpc_tracker" {
  source = "./modules/aviatrix/d/aviatrix_vpc_tracker"

  # account_name - (optional) is a type of string
  account_name = null
  # cidr - (optional) is a type of string
  cidr = null
  # cloud_type - (optional) is a type of number
  cloud_type = null
  # region - (optional) is a type of string
  region = null
}

top

Variables

variable "account_name" {
  description = "(optional) - Get VPCs that match the given access account name."
  type        = string
  default     = null
}

variable "cidr" {
  description = "(optional) - Get VPCs that match the given CIDR."
  type        = string
  default     = null
}

variable "cloud_type" {
  description = "(optional) - Get VPCs from a single cloud provider. For example, if cloud_type = 4, only GCP VPCs will be returned."
  type        = number
  default     = null
}

variable "region" {
  description = "(optional) - Get VPCs that match the given region."
  type        = string
  default     = null
}

top

Datasource

data "aviatrix_vpc_tracker" "this" {
  # account_name - (optional) is a type of string
  account_name = var.account_name
  # cidr - (optional) is a type of string
  cidr = var.cidr
  # cloud_type - (optional) is a type of number
  cloud_type = var.cloud_type
  # region - (optional) is a type of string
  region = var.region
}

top

Outputs

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

output "vpc_list" {
  description = "returns a list of object"
  value       = data.aviatrix_vpc_tracker.this.vpc_list
}

output "this" {
  value = aviatrix_vpc_tracker.this
}

top