Skip to content

Commit 6076d19

Browse files
committed
Name tag should be first in merge
1 parent 5d20ea1 commit 6076d19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iam.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ resource "aws_iam_role" "eventbridge" {
3636
permissions_boundary = var.role_permissions_boundary
3737
assume_role_policy = data.aws_iam_policy_document.assume_role[0].json
3838

39-
tags = merge(var.tags, { Name = local.role_name }, var.role_tags)
39+
tags = merge({ Name = local.role_name }, var.tags, var.role_tags)
4040
}
4141

4242
#####################
@@ -350,7 +350,7 @@ resource "aws_iam_policy" "additional_json" {
350350
path = var.role_path
351351
policy = var.policy_json
352352

353-
tags = merge(var.tags, { Name = local.role_name })
353+
tags = merge({ Name = local.role_name }, var.tags)
354354
}
355355

356356
resource "aws_iam_policy_attachment" "additional_json" {

0 commit comments

Comments
 (0)