Skip to content

Conversation

@emaydeck-mozilla
Copy link
Contributor

@emaydeck-mozilla emaydeck-mozilla commented Nov 20, 2025

Description

This adds a new output that allows us to query DNS authorization data for specific domains.

The existing output returns all of the data in a list. For example:

  "dns_authorizations" = [
    {
      "data" = "xxxxxxxx.authorize.certificatemanager.goog."
      "name" = "_acme-challenge.example-domain.net."
      "type" = "CNAME"
    },
    {
      "data" = "yyyyyyyy.authorize.certificatemanager.goog."
      "name" = "_acme-challenge.example-domain2.net."
      "type" = "CNAME"
    },
  ]

The new output returns a map instead with each domain as the key. For example:

  "dns_authorizations_by_domain" = {
    "example-domain.net" = {
      "data" = "xxxxxxxx.authorize.certificatemanager.goog."
      "name" = "_acme-challenge.example-domain.net."
      "type" = "CNAME"
    }
    "example-domain2.net" = {
      "data" = "yyyyyyyy.authorize.certificatemanager.goog."
      "name" = "_acme-challenge.example-domain2.net."
      "type" = "CNAME"
    }
  }

This allows us to more easily iterate over the output in separate modules and use clearer names in for_each statements. I specifically needed this for a situation where I created certificates for a mixture of GCP and AWS domains in a single certificate map but wanted to separate them by provider when creating DNS records for the authorizations.

Related Tickets & Documents

@emaydeck-mozilla emaydeck-mozilla requested a review from a team November 20, 2025 22:23
@emaydeck-mozilla emaydeck-mozilla self-assigned this Nov 20, 2025
@github-actions github-actions bot added the minor This PR will increment a minor version label Nov 20, 2025
@emaydeck-mozilla emaydeck-mozilla added patch This PR will increment a patch version and removed minor This PR will increment a minor version labels Nov 20, 2025
@github-actions
Copy link
Contributor

Release plan

Directory Previous version New version
google_certificate_manager_certificate_map 0.2.1 0.2.2

@emaydeck-mozilla emaydeck-mozilla merged commit 9095fe3 into main Nov 20, 2025
6 of 9 checks passed
@emaydeck-mozilla emaydeck-mozilla deleted the MZCLD-1289 branch November 20, 2025 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch This PR will increment a patch version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants