IAM User.fromUserName does not implement IUser functions #5797
Labels
@aws-cdk/aws-iam
Related to AWS Identity and Access Management
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
in-progress
This issue is being actively worked on.
p1
When trying to create an IAM User from
@aws-cdk/aws-iam
withUser.fromUserName
the following IUser functions throw an erro.addToGroup
attachInlinePolicy
addManagedPolicy
https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-iam/lib/user.ts#L145-L154
Reproduction Steps
Error Log
Cannot add inline policy to imported User
Environment
Other
https://gitter.im/awslabs/aws-cdk?at=5dc31ea914d55a3785e7ca39 (Other people are having this problem)
#3738 (PR implementation of IUser)
#3490 (issue associated with PR)
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: