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]: aws_route53_traffic_policy_document does not support weighted rule #39977

Open
akramhussein opened this issue Oct 31, 2024 · 1 comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. needs-triage Waiting for first response or review from a maintainer. service/route53 Issues and PRs that pertain to the route53 service.

Comments

@akramhussein
Copy link
Contributor

Description

Currently, the aws_route53_traffic_policy_document does not support the weight rule.

This enhancement would introduce this missing rule to bring it in line with what the API permits.

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

  • aws_route53_traffic_policy_document

Potential Terraform Configuration

data "aws_route53_traffic_policy_document" "example" {
  record_type = "A"
  start_rule  = "site_switch"

  endpoint {
    id    = "my_elb"
    type  = "elastic-load-balancer"
    value = "elb-111111.${data.aws_region.current.name}.elb.amazonaws.com"
  }
  endpoint {
    id     = "site_down_banner"
    type   = "s3-website"
    region = data.aws_region.current.name
    value  = "www.example.com"
  }

  rule {
    id   = "split_rule"
    type = "weighted"

    item {
      weight                   = 100
      evaluate_target_health   = false
      endpoint_reference       = "my_elb"
    }

    item {
      weight                   = 100
      evaluate_target_health   = false
      endpoint_reference       = "site_down_banner"
    }
  }
}

References

AWS Documentation

Would you like to implement a fix?

No

@akramhussein akramhussein added the enhancement Requests to existing resources that expand the functionality or scope. label Oct 31, 2024
Copy link

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 service/route53 Issues and PRs that pertain to the route53 service. needs-triage Waiting for first response or review from a maintainer. labels Oct 31, 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. needs-triage Waiting for first response or review from a maintainer. service/route53 Issues and PRs that pertain to the route53 service.
Projects
None yet
Development

No branches or pull requests

1 participant