Tags are not added to IAM user
See original GitHub issueReproduction Steps
I’m creating a new IAM user like this and try to add Tag
s 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:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
.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.