question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tags are not added to IAM user

See original GitHub issue

Reproduction Steps

I’m creating a new IAM user like this and try to add Tags to it (using either option 1 or option 2):

const user = new iam.User(this, 'iam-user-ci-app', {
    userName: 'iam-user-ci-app'
})
user.node.applyAspect(new Tag('key', 'value')) // option 1 

Tag.add(user, 'key', 'value') // option 2

After cdk deploy the user is created but it has no tags applied.

Environment

  • CLI Version : 1.14.0
  • Framework Version: 1.14.0
  • OS : Darwin mbp.local 19.0.0 Darwin Kernel Version 19.0.0: Wed Sep 25 20:18:50 PDT 2019; root:xnu-6153.11.26~2/RELEASE_X86_64 x86_64
  • Language : TypeScript

Other

Same happens for a Group construct.


This is 🐛 Bug Report

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ggallercommented, Feb 14, 2022

It seems now the CloudFormation documentation has been updated and this comment does not look relevant. Expecting behaviour that CDK add internal tags, like aws:cloudformation:stack-id.

0reactions
github-actions[bot]commented, Mar 10, 2021

This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tagging IAM users - AWS Identity and Access Management
Choose Add tags if the user does not yet have tags. Choose Edit tags to manage the existing set of tags. Add or...
Read more >
Tagging IAM users - Amazon Identity and Access Management
Choose the Tags tab and then complete one of the following actions: Choose Add tags if the user does not yet have tags....
Read more >
Tags for Roles and IAM Users - CloudySave
Tag Editor cannot be used for tagging IAM entities, because it does not support IAM tags. Specific permissions are needed for tagging IAM...
Read more >
Tags and access control | IAM Documentation - Google Cloud
As a result, you can use tags to manage access to any Google Cloud resource. ... Tags are not intended to contain sensitive...
Read more >
AWS IAM Tagging, not tagging as expected using Lambda ...
This works because you already have a Sequence of TagTypeDef to pass into the Tags= keyword argument. iam_client.tag_user(UserName=user[' ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found