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

[Enhancement]: Allow set SOA record for AWS Route53 zone (aws_route53_zone) #38220

Open
pinkavaj opened this issue Jul 2, 2024 · 1 comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/route53 Issues and PRs that pertain to the route53 service.

Comments

@pinkavaj
Copy link

pinkavaj commented Jul 2, 2024

Description

The SOA record is part of each Rounte53 zone. It is created automatically and cannot be deleted, it can only be updated.

Existing solution to update SOA is to import this resource into aws_route53_record, but this is possible only after the zone is created, so it cannot be done within the same terraform apply run, making it cumbersome.

Affected Resource(s) and/or Data Source(s)

  • aws_route53_zone
  • aws_route53_record

Potential Terraform Configuration

Either add block to aws_route53_zone or create new resource which will behave similar to eg. aws_default_route_table

eg

resource "aws_route53_zone" "myzone" {
  name          = "${each.key}.rossum-ext.app."
  soa = {
    refresh      = 7200
    negative_ttl = 123
  ...
  } 
}

or

resource "aws_route53_zone_soa" "myzone" {
  zone_id = aws_route53_zone.myzone.zone_id

  refresh      = 7200
  negative_ttl = 123
  ...
}

References

No response

Would you like to implement a fix?

No

@pinkavaj pinkavaj added the enhancement Requests to existing resources that expand the functionality or scope. label Jul 2, 2024
Copy link

github-actions bot commented Jul 2, 2024

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • 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.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/route53 Issues and PRs that pertain to the route53 service. label Jul 2, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Jul 2, 2024
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/route53 Issues and PRs that pertain to the route53 service.
Projects
None yet
Development

No branches or pull requests

2 participants