From fdb7eb13bf77dcdf16dade493081bcb47cba01c9 Mon Sep 17 00:00:00 2001 From: Shashi Desai Date: Wed, 9 Oct 2024 13:03:46 +0100 Subject: [PATCH 1/2] fix: add tags to aws_appautoscaling_policy tags were missing from the resource aws_appautoscaling_policy --- main.tf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.tf b/main.tf index 9c8b756..2d52596 100644 --- a/main.tf +++ b/main.tf @@ -318,6 +318,14 @@ resource "aws_appautoscaling_policy" "this" { depends_on = [ aws_appautoscaling_target.this ] + + tags = var.tags + + lifecycle { + ignore_changes = [ + tags_all, + ] + } } ################################################################################ From 7c5bd70737c1062a11f3a0ef72816eae582da1dc Mon Sep 17 00:00:00 2001 From: Shashi Desai Date: Wed, 9 Oct 2024 13:12:00 +0100 Subject: [PATCH 2/2] Update main.tf --- main.tf | 6 ------ 1 file changed, 6 deletions(-) diff --git a/main.tf b/main.tf index 2d52596..20b3ba3 100644 --- a/main.tf +++ b/main.tf @@ -320,12 +320,6 @@ resource "aws_appautoscaling_policy" "this" { ] tags = var.tags - - lifecycle { - ignore_changes = [ - tags_all, - ] - } } ################################################################################