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

ALB Listener Rules now support: request method, query string, http header, source ip #9665

Closed
robacarp opened this issue Aug 7, 2019 · 2 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/elbv2 Issues and PRs that pertain to the elbv2 service.

Comments

@robacarp
Copy link

robacarp commented Aug 7, 2019

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 "me too" comments, 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

Description

Load balancer listener rules now support several action conditions which aren't implemented in the aws provider.

image

New or Affected Resource(s)

  • aws_alb_listener_rule
  • aws_lb_listener_rule

Potential Terraform Configuration

resource "aws_lb_listener_rule" "downtime_bypass" {
  # ...........
  condition {
    field  = "host-header"
    values = ["*"]
  }

  condition {
    field = "http-header"
    name = "..."
    values = ["*"]
  }

  condition {
    field = "query-string"
    key = "..."
    value = "*"
  }

  condition {
    field = "request-method"
    value = "GET|POST|PATCH|DELETE"
  }

  condition {
    field = "source-ip"
    value = "127.0.0.1"
  }
}

References

https://docs.aws.amazon.com/elasticloadbalancing/latest/application/listener-update-rules.html?icmpid=docs_elbv2_console

@robacarp robacarp added the enhancement Requests to existing resources that expand the functionality or scope. label Aug 7, 2019
@ghost ghost added the service/elbv2 Issues and PRs that pertain to the elbv2 service. label Aug 7, 2019
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 7, 2019
@robacarp
Copy link
Author

robacarp commented Aug 7, 2019

sorry, closing as a duplicate of #8126 and #8955

@robacarp robacarp closed this as completed Aug 7, 2019
@ghost
Copy link

ghost commented Nov 2, 2019

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Nov 2, 2019
@breathingdust breathingdust removed the needs-triage Waiting for first response or review from a maintainer. label Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/elbv2 Issues and PRs that pertain to the elbv2 service.
Projects
None yet
Development

No branches or pull requests

2 participants