Cloudformation-coverage-roadmap: AWS::IAM::Role (add tagging support)

Created on 30 Jul 2019  路  4Comments  路  Source: aws-cloudformation/cloudformation-coverage-roadmap

  1. Title -> Customers would like to be able to tag IAM Roles from a CloudFormation template, after the recent introduction of the feature. Support for tags in IAM principals has been added to Boto 3 as well.
  2. Scope of request -> Add at creation, and to update existing roles.
  3. Expected behavior -> See 2.
  4. Test case recommendation (optional) ->
  5. Links to existing API doc (optional) ->
  6. Category tag (optional) -> Compute
  7. Any additional context (optional)
security identity compliance

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 !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"

All 4 comments

@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).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

baxang picture baxang  路  3Comments

san-san picture san-san  路  3Comments

mildebrandt picture mildebrandt  路  3Comments

grauj-aws picture grauj-aws  路  3Comments

ghost picture ghost  路  4Comments