Skip to content

frostmoln_webserver_domain (Resource)

Manages a domain binding for a webserver instance in the Frostmoln platform. This resource is create/delete only — domains cannot be updated in place.

Example Usage

terraform
# Bind domains to a managed webserver instance. Point each domain's DNS at the
# instance's public IP, and mark one binding as the default. The resource is
# create/delete only, so changing any argument replaces the binding.
resource "frostmoln_webserver_domain" "apex" {
  instance_id = frostmoln_nginx_instance.site.id
  domain_name = "example.com"
  is_default  = true
}

resource "frostmoln_webserver_domain" "www" {
  instance_id = frostmoln_nginx_instance.site.id
  domain_name = "www.example.com"
}

Schema

Required

  • domain_name (String) The domain name to bind (e.g. "example.com", "www.example.com").
  • instance_id (String) The ID of the webserver instance to bind the domain to.

Optional

  • is_default (Boolean) Whether this is the default domain for the webserver instance.
  • tls_enabled (Boolean) Whether TLS is enabled for this domain.

Read-Only

  • created_at (String) The timestamp when the domain binding was created.
  • id (String) The unique identifier of the domain binding.