frostmoln_subnet (Resource)
Manages a subnet in the Frostmoln Cloud Platform.
Example Usage
terraform
resource "frostmoln_subnet" "example" {
name = "web-subnet"
description = "Web tier subnet"
cidr = "10.0.1.0/24"
vpc_id = frostmoln_vpc.example.id
zone = "falkenberg"
gateway_ip = "10.0.1.1"
# dns_servers is optional — omit it to use the platform resolvers. It is
# ForceNew, so correcting a wrong value later recreates the subnet.
tags = {
tier = "web"
}
}Schema
Required
cidr(String) The CIDR block for the subnet.name(String) The name of the subnet.vpc_id(String) The ID of the VPC this subnet belongs to.
Optional
description(String) A description of the subnet.dns_servers(List of String) The DNS server addresses for the subnet. Defaults to the platform DNS servers.gateway_ip(String) The gateway IP address for the subnet.tags(Map of String) Tags for the subnet.zone(String) The availability zone for the subnet.
Read-Only
available_ips(Number) The number of available IP addresses in the subnet.created_at(String) The creation timestamp.id(String) The unique identifier of the subnet.status(String) The status of the subnet.