fix(iam): ignore tags_all on hcptf roles (PLAT-210)

ignore_changes on tags does not cover provider default_tags. The prod
speculative plan still wanted Environment on tags_all and would TagRole.
This commit is contained in:
Adam Moussa 2026-09-18 14:55:32 -04:00
parent 8343d572af
commit e858eb580b
No known key found for this signature in database

View file

@ -721,9 +721,9 @@ resource "aws_iam_role" "hcptf_apply" {
}
# Apply role cannot iam:TagRole on itself. Provider default_tags
# (Environment/Workspace) would otherwise 403 mid-apply.
# merge into tags_all, so ignoring tags alone still 403s mid-apply.
lifecycle {
ignore_changes = [tags]
ignore_changes = [tags, tags_all]
}
}
@ -746,7 +746,7 @@ resource "aws_iam_role" "hcptf_plan" {
# Same self-tag restriction as hcptf_apply.
lifecycle {
ignore_changes = [tags]
ignore_changes = [tags, tags_all]
}
}