frostmoln_vpc (Data Source)
Look up a VPC by ID or name.
Example Usage
terraform
data "frostmoln_vpc" "production" {
name = "production-vpc"
}
output "vpc_cidr" {
value = data.frostmoln_vpc.production.cidr
}
output "vpc_dns_domain" {
value = data.frostmoln_vpc.production.dns_domain
}Schema
Optional
id(String) The unique identifier of the VPC. Exactly one of id or name must be specified.name(String) The name of the VPC. Exactly one of id or name must be specified.
Read-Only
cidr(String) The CIDR block of the VPC.created_at(String) The timestamp when the VPC was created.description(String) The description of the VPC.dns_domain(String) The VPC's internal DNS domain,<dns_label>.<tenant>.<org>.fm.internal.(trailing dot). Instances resolve as<hostname>.<dns_domain>from inside the VPC only. Null until assigned.dns_label(String) The VPC's DNS label (fixed at create; derived from the name unless set explicitly). Null only for a VPC the platform has not labelled yet.enable_dns_hostnames(Boolean, Deprecated) Deprecated. Alwaystrue: VM DNS names are always published, so every VM in the VPC has ahostname/fqdn.is_default(Boolean) Whether this is the default VPC.status(String) The status of the VPC.subnet_count(Number) The number of subnets in the VPC.tags(Map of String) The tags associated with the VPC.