Skip to main content
Providers

ManagedZone

A resource of the GCP provider, version 0.2.0, in its DNS group. Import it with:

import ManagedZone from "gcp/dns"

Example

resource ManagedZone example {
    name        = "example-value"
    dnsName     = "example-value"
    description = "example-value"
    labels      = "..."
}

Properties

Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.

NameTypeDefaultRequiredDescription
namestring—NoThe name of the managed zone (must be unique within the project)
dnsNamestring—NoThe DNS name of the zone (must end with a dot, e.g., 'example.com.')
descriptionstring—NoA description for the managed zone
labelsobject—NoLabels to apply to the managed zone

Set by GCP after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.

NameTypeImportableDescription
managedZoneIdstringYesThe unique managed zone ID assigned by GCP
nameServersany[]NoThe name servers assigned to this managed zone
creationTimestringNoThe creation time of the managed zone

On this page