github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/google/dns/AVD-GCP-0013/Terraform.md (about)

     1  
     2  Enable DNSSEC
     3  
     4  ```hcl
     5   resource "google_dns_managed_zone" "good_example" {
     6     name        = "example-zone"
     7     dns_name    = "example-${random_id.rnd.hex}.com."
     8     description = "Example DNS zone"
     9     labels = {
    10       foo = "bar"
    11     }
    12     dnssec_config {
    13       state = "on"
    14     }
    15   }
    16   
    17   resource "random_id" "rnd" {
    18     byte_length = 4
    19   }
    20   
    21  ```
    22  
    23  #### Remediation Links
    24   - https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/dns_managed_zone#state
    25