From b7d4563595e7548f2e151cc6df3c11f85af91495 Mon Sep 17 00:00:00 2001 From: Martin Cozzi Date: Sat, 10 Aug 2019 08:01:59 -0700 Subject: [PATCH] Removes nested list argument. `auto_rollback_events`, `lb_listener_arns`, and `test_traffic_route_listener_arns` are already declared as lists in the variables.tf. By passing those arguments inside of a list terraform is throwing errors since it expect to read a single element from the list, not a nested list. --- main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.tf b/main.tf index 088f238..3ce23e1 100644 --- a/main.tf +++ b/main.tf @@ -23,7 +23,7 @@ resource "aws_codedeploy_deployment_group" "default" { enabled = "${var.auto_rollback_enabled}" # The event type or types that trigger a rollback. Supported types are DEPLOYMENT_FAILURE and DEPLOYMENT_STOP_ON_ALARM. - events = ["${var.auto_rollback_events}"] + events = "${var.auto_rollback_events}" } # You can configure options for a blue/green deployment. @@ -79,7 +79,7 @@ resource "aws_codedeploy_deployment_group" "default" { target_group_pair_info { # The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete. prod_traffic_route { - listener_arns = ["${var.lb_listener_arns}"] + listener_arns = "${var.lb_listener_arns}" } # One pair of target groups. One is associated with the original task set. @@ -95,7 +95,7 @@ resource "aws_codedeploy_deployment_group" "default" { # An optional path used by a load balancer to route test traffic after an Amazon ECS deployment. # Validation can happen while test traffic is served during a deployment. test_traffic_route { - listener_arns = ["${var.test_traffic_route_listener_arns}"] + listener_arns = "${var.test_traffic_route_listener_arns}" } } }