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
| Name | Version |
|---|---|
| terraform | >= 1.12.2 |
| >= 4.73.0 |
Providers
| Name | Version |
|---|---|
| >= 4.73.0 |
Modules
No modules.
Resources
| Name | Type |
|---|---|
| google_dns_managed_zone.zone | resource |
| google_dns_record_set.record | resource |
| google_project_service.dns_api | resource |
Inputs
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| description | A textual description of this managed zone | string | "Managed by Cluster Toolkit" | no |
| dns_name | The DNS name of this managed zone, e.g. 'example.com.' | string | n/a | yes |
| labels | A set of key/value label pairs to assign to this ManagedZone | map(string) | {} | no |
| project_id | Project ID | string | n/a | yes |
| recordsets | List of DNS record sets to create in the zone | list(object({ | [] | no |
| zone_name | The name of the DNS zone | string | n/a | yes |
Outputs
| Name | Description |
|---|---|
| managed_zone_id | The fully qualified ID of the DNS Managed Zone. |
| name_servers | The delegated name servers for the zone. |
| zone_name | The name of the managed DNS zone. |