Looks like this is now supported: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-tags
@luiseduardocolon
Hello,
Having deployed CF template using the IAM Roles 'tags' https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-tags
I have found that the !Ref is not being honored.
This below works when it's hardcoded
Tags:
-
Key: "keyname1"
Value: "value1"
-
Key: "keyname2"
Value: "value2"
This below is not working and the same Parameter works for EC2 and Lambda resources.
Tags:
-
Key: "keyname1"
Value: "value1"
-
Key: "Application"
Value: !Ref Application
-
Key: "keyname3"
Value: "value3"
I'm running into the same problem as above, where calls to !Ref aren't being resolved (the key doesn't show up at all).
Most helpful comment
@luiseduardocolon
Hello,
Having deployed CF template using the IAM Roles 'tags' https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-tags
I have found that the
!Refis not being honored.This below works when it's hardcoded
This below is not working and the same Parameter works for EC2 and Lambda resources.