Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Ignore tags for aws_appautoscaling_target #474

Closed
wants to merge 1 commit into from
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