Skip to content

Instantly share code, notes, and snippets.

@Jojoooo1
Last active November 7, 2023 20:22
Show Gist options
  • Save Jojoooo1/af15e16a7cf76d35c8881c433e4589c7 to your computer and use it in GitHub Desktop.
Save Jojoooo1/af15e16a7cf76d35c8881c433e4589c7 to your computer and use it in GitHub Desktop.
GCP Cloud dns module
module "dns_public_zone" {
source = "terraform-google-modules/cloud-dns/google"
version = "5.1.1"
project_id = var.project_id
type = "public"
name = var.dns_name
domain = var.dns_domain
description = "DNS zone for ${var.dns_name} managed by Terraform"
recordsets = var.recordsets
labels = local.common_labels
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment