hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.72k stars 9.08k forks source link

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

Open pinkavaj opened 2 months ago

pinkavaj commented 2 months ago

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)

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

github-actions[bot] commented 2 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue