From a26965a58a0d5d4246935f6b16d796ef83e859ad Mon Sep 17 00:00:00 2001 From: SteveLinden Date: Thu, 21 Sep 2023 09:37:44 +0100 Subject: [PATCH 1/2] Fix an issue on tflint - square brackets around * --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 457622c..b3a7693 100644 --- a/main.tf +++ b/main.tf @@ -223,7 +223,7 @@ resource "aws_ssm_maintenance_window_task" "ssm-maintenance-window-automation-ta targets { key = "WindowTargetIds" - values = aws_ssm_maintenance_window_target.ssm-maintenance-window-target.*.id + values = aws_ssm_maintenance_window_target.ssm-maintenance-window-target.[*].id } task_invocation_parameters { From 70160c9fad045d590dd70aec5178bbdba6cae84c Mon Sep 17 00:00:00 2001 From: SteveLinden Date: Thu, 21 Sep 2023 09:50:58 +0100 Subject: [PATCH 2/2] Correcting slight error --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index b3a7693..30fbc7e 100644 --- a/main.tf +++ b/main.tf @@ -223,7 +223,7 @@ resource "aws_ssm_maintenance_window_task" "ssm-maintenance-window-automation-ta targets { key = "WindowTargetIds" - values = aws_ssm_maintenance_window_target.ssm-maintenance-window-target.[*].id + values = aws_ssm_maintenance_window_target.ssm-maintenance-window-target[*].id } task_invocation_parameters {