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

aws_route53_record containing underscore cannot be imported #21494

Closed
chrillux opened this issue Oct 26, 2021 · 2 comments
Closed

aws_route53_record containing underscore cannot be imported #21494

chrillux opened this issue Oct 26, 2021 · 2 comments
Labels
service/route53 Issues and PRs that pertain to the route53 service.

Comments

@chrillux
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

Affected Resource(s)

  • aws_route53_record

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

provider "aws" {}

data "aws_route53_zone" "selected" {
  name = "mydomain.com."
}

resource "aws_route53_record" "domainkey" {
  zone_id = "${data.aws_route53_zone.selected.id}"
  name    = "some._domainkey.mydomain.com."
  type    = "TXT"
  ttl     = "300"
  records = ["somevalue"]
}

Debug Output

Error: InvalidInput: 1 validation error detected: Value 'domainkey' at 'startRecordType' failed to satisfy constraint: Member must satisfy enum value set: [AAAA, A, CAA, NS, SOA, SPF, MX, PTR, CNAME, DS, TXT, SRV, NAPTR]
        status code: 400, request id: cf2fa2bc-ab93-4172-87fd-d4f942b24138

Panic Output

Expected Behavior

That it works to import DNS records that has underscores anywhere in the name.

Actual Behavior

Right now it only works to have an underscore in the beginning of the name, fixed by this. The initial problem reported by this is however not fixed.

Steps to Reproduce

Try to import a name of this format: ABCDEF_foo1._domainkey_CNAME

Important Factoids

References

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/route53 Issues and PRs that pertain to the route53 service. labels Oct 26, 2021
@chrillux
Copy link
Author

I see there is already a PR open fixing this #20803. Closing.

@github-actions github-actions bot removed the needs-triage Waiting for first response or review from a maintainer. label Oct 26, 2021
@github-actions
Copy link

github-actions bot commented Jun 1, 2022

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/route53 Issues and PRs that pertain to the route53 service.
Projects
None yet
Development

No branches or pull requests

1 participant