You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource"aws_lb_listener_rule""myrule" {
listener_arn="${aws_lb_listener.mylistener.arn}"action {
type="redirect"redirect {
port="443"protocol="HTTPS"status_code="HTTP_301"
}
}
# NOTE: Here I'm only adding conditions that are new!condition {
field="http-header"# This would be optionalvalues=["my-header-value"]
# Optional: for when using http-header"http_header_name="header-name"
}
condition {
field="http-request-method"# This would be optionalvalues=["my-http-method"]
}
condition {
field="query-string"# This would be optionalquery_string_values={
key1 ="value1"
key2 ="value2"
}
}
condition {
field="source-ip"# This would be optionalvalues=["10.0.0.1"]
}
}
facundovictor
changed the title
Feature request: Update elbv2 listener rules to support new conditions
Feature request: Update aws_lb_listener_rule to support new conditions
Apr 25, 2019
@facundovictor : hi , i couldn't see any new condition for path-pattern which supports multiple values. can you help me with an example. Appreciate for your help.
Community Note
Description
The listener rules support new conditions, as explained from aws cli man:
New or Affected Resource(s)
aws_alb_listener_rule
aws_lb_listener_rule
Potential Terraform Configuration
References
https://aws.amazon.com/blogs/aws/new-advanced-request-routing-for-aws-application-load-balancers/
The text was updated successfully, but these errors were encountered: