Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 1.61 KB

File metadata and controls

64 lines (44 loc) · 1.61 KB
page_title cozystack_vpc Data Source - cozystack
subcategory
description Read an existing Cozystack VPC by name and namespace.

cozystack_vpc (Data Source)

Read an existing Cozystack VPC by name and namespace.

Example Usage

data "cozystack_vpc" "net" {
  name      = "net"
  namespace = "tenant-root"
}

Schema

Required

  • name (String) VirtualPrivateCloud instance name.
  • namespace (String) Tenant namespace.

Read-Only

  • chart_version (String) Deployed chart version.
  • id (String) Synthetic identifier namespace/name.
  • peers (Attributes List) VPC peering connections. (see below for nested schema)
  • ready (Boolean) Whether the application's Ready condition is true.
  • routes (Attributes List) Static routes for the VPC. (see below for nested schema)
  • subnets (Attributes List) Subnets of the VPC. (see below for nested schema)
  • uid (String) Server-assigned object UID (metadata.uid).

Nested Schema for peers

Read-Only:

  • tenant_namespace (String) Namespace of the remote tenant.
  • vpc_name (String) Logical name of the remote VPC.

Nested Schema for routes

Read-Only:

  • cidr (String) Destination CIDR.
  • next_hop_ip (String) Next hop IP address.

Nested Schema for subnets

Read-Only:

  • cidr (String) IP address range (CIDR).
  • name (String) Subnet name.