From a9f64bbab88426adafdb20f3f048bc78af6f87f3 Mon Sep 17 00:00:00 2001 From: Michael Warkentin Date: Tue, 7 Jan 2020 13:57:18 -0500 Subject: [PATCH] Update deprecated ALB listener rule format Upstream change: https://github.com/terraform-providers/terraform-provider-aws/pull/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" { ``` --- main.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 461c85c7..25691f5d 100644 --- a/main.tf +++ b/main.tf @@ -224,8 +224,9 @@ resource "aws_lb_listener_rule" "redirect_http_to_https" { } condition { - field = "path-pattern" - values = ["*"] + path_pattern { + values = ["*"] + } } }