Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNSKEY and RRSIG rr types are not supported #220

Open
liebman opened this issue Aug 2, 2022 · 0 comments
Open

DNSKEY and RRSIG rr types are not supported #220

liebman opened this issue Aug 2, 2022 · 0 comments

Comments

@liebman
Copy link
Contributor

liebman commented Aug 2, 2022

The ns1 terraform plugin does not accept DNSKEY and RRSIG resource types. These are supported by the NS1 api.
They can be imported and appear in the state file however a plan then fails.

Terraform Version

Terraform v1.2.6
on darwin_amd64

  • provider registry.terraform.io/ns1-terraform/ns1 v1.12.7

Affected Resource(s)

  • ns1_record

Terraform Configuration Files

resource "ns1_record" "DNSKEY_example_com" {
  zone   = ns1_zone.this.zone
  domain = "example.com"
  type   = "DNSKEY"
  ttl    = 3600
}
resource "ns1_record" "RRSIG_example_com" {
  zone   = ns1_zone.this.zone
  domain = "example.com"
  type   = "RRSIG"
  ttl    = 3600
}

Debug Output

Please provider a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.

Panic Output

terraform plan

│ Error: expecting one of "A", "AAAA", "ALIAS", "AFSDB", "CAA", "CNAME", "DNAME", "DS", "HINFO", "MX", "NAPTR", "NS", "PTR", "RP", "SPF", "SRV", "TXT", "URLFWD", "strings"; got "DNSKEY"

│ with module.ZONE_example_com.ns1_record.DNSKEY_example_com,
│ on zones/example.com/example.com_DNSKEY.tf line 1, in resource "ns1_record" "DNSKEY_example_com":
│ 1: resource "ns1_record" "DNSKEY_example_com" {



│ Error: expecting one of "A", "AAAA", "ALIAS", "AFSDB", "CAA", "CNAME", "DNAME", "DS", "HINFO", "MX", "NAPTR", "NS", "PTR", "RP", "SPF", "SRV", "TXT", "URLFWD", "strings"; got "RRSIG"

│ with module.ZONE_example_com.ns1_record.RRSIG_example_com,
│ on zones/example.com/example.com_RRSIG.tf line 1, in resource "ns1_record" "RRSIG_example_com":
│ 1: resource "ns1_record" "RRSIG_example_com" {

Expected Behavior

These two record types should be accepted

Actual Behavior

Resource types cause terraform to fail

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform plan

Important Factoids

Are there anything atypical about your accounts that we should know? For example: Running in EC2 Classic? Custom version of OpenStack? Tight ACLs?

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant