README.md

June 10, 2026 ยท View on GitHub

Description

This module creates a Google Cloud DNS Managed Zone.

Example usage

- id: dns_managed_zone
  source: modules/network/dns-managed-zone
  settings:
    project_id: $(vars.project_id)
    zone_name: my-zone
    dns_name: example.com.
    description: "My DNS Zone"
    labels:
      env: "dev"
    recordsets:
    - name: "www"
      type: "A"
      ttl: 300
      rrdatas:
      - "1.2.3.4"

License

Copyright 2026 Google LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Requirements

NameVersion
terraform>= 1.12.2
google>= 4.73.0

Providers

NameVersion
google>= 4.73.0

Modules

No modules.

Resources

NameType
google_dns_managed_zone.zoneresource
google_dns_record_set.recordresource
google_project_service.dns_apiresource

Inputs

NameDescriptionTypeDefaultRequired
descriptionA textual description of this managed zonestring"Managed by Cluster Toolkit"no
dns_nameThe DNS name of this managed zone, e.g. 'example.com.'stringn/ayes
labelsA set of key/value label pairs to assign to this ManagedZonemap(string){}no
project_idProject IDstringn/ayes
recordsetsList of DNS record sets to create in the zone
list(object({
name = string
type = string
ttl = number
rrdatas = list(string)
}))
[]no
zone_nameThe name of the DNS zonestringn/ayes

Outputs

NameDescription
managed_zone_idThe fully qualified ID of the DNS Managed Zone.
name_serversThe delegated name servers for the zone.
zone_nameThe name of the managed DNS zone.