Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,10 @@ resource "aws_appautoscaling_target" "this" {
tags = var.tags

lifecycle {
ignore_changes = [
ignore_changes = var.autoscaling_tags_ignore ? [
tags,
tags_all,
]
] : []
}
}

Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,12 @@ variable "autoscaling_target_connections" {
default = 700
}

variable "autoscaling_tags_ignore" {
description = "Scalable targets created before 2023-03-20 cannot use tags or default_tags. To prevent terraform plan showing differences that can never be reconciled, set this flag to true"
type = bool
default = false
}

################################################################################
# Security Group
################################################################################
Expand Down
Loading