Skip to content

Commit

Permalink
Update deprecated ALB listener rule format
Browse files Browse the repository at this point in the history
Upstream change: hashicorp/terraform-provider-aws#8268

Should fix this warning:

```
Warning: "condition.0.values": [DEPRECATED] use 'host_header' or 'path_pattern' attribute instead

  on .terraform/modules/atlantis/terraform-aws-modules-terraform-aws-atlantis-e1242e3/main.tf line 213, in resource "aws_lb_listener_rule" "redirect_http_to_https":
 213: resource "aws_lb_listener_rule" "redirect_http_to_https" {
```
  • Loading branch information
mwarkentin authored Jan 7, 2020
1 parent 49499a8 commit a9f64bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,9 @@ resource "aws_lb_listener_rule" "redirect_http_to_https" {
}

condition {
field = "path-pattern"
values = ["*"]
path_pattern {
values = ["*"]
}
}
}

Expand Down

0 comments on commit a9f64bb

Please sign in to comment.