» aviatrix_vpc

The aviatrix_vpc data source provides details about a specific VPC created by the Aviatrix Controller.

This data source can prove useful when a module accepts any form of VPC detail as an input variable. For example, requiring a subnet CIDR specification when creating a gateway.

» Example Usage

# Aviatrix VPC Data Source
data "aviatrix_vpc" "test" {
  name = "vpc-test"
}

» Argument Reference

The following arguments are supported:

  • name - (Required) Name of the Aviatrix VPC.
  • route_tables_filter - (Optional) Filters the route_tables list to contain only public or private route tables. Valid values are 'private' or 'public'. If not set route_tables is not filtered.

» Attribute Reference

In addition to all arguments above, the following attributes are exported: