Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Fix for non automatic domain authentication dns records #15

Merged
merged 2 commits into from
Feb 4, 2022

Conversation

andre-vspry
Copy link
Contributor

If the automatic_security attribute of sendgrid_domain_authentication is not set then the dns records are not cnames and don't match the existing response format.

e.g.

resource "sendgrid_domain_authentication" "default" {
    domain = trimsuffix(google_dns_record_set.a.name, ".")
    # ips = [ "10.10.10.10" ]
    # is_default = true
    # automatic_security = true
}

Added tests and extended to handle txt and mx dns records.

Also added debug flag to main to enable debugging with delve.

@trois-six trois-six merged commit 864dc9d into trois-six:main Feb 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants