aws-sdk-java icon indicating copy to clipboard operation
aws-sdk-java copied to clipboard

Role.getTags() returning empty list

Open anilcs81 opened this issue 6 years ago • 5 comments

I am trying to get the tags associated with an IAM Role and the getTags() method on Role object returned by listRoles() is returning empty list. The same issue exists for IamUser as well.

anilcs81 avatar Dec 06 '19 21:12 anilcs81

Hi @anilcs81,

calling the listRoles() API with wire logging turned on I noticed that the response does not contain the Tags info in the Role structure. That's why getTags() is returning an empty list.

This is a service side issue, so I'll contact the IAM team. We suggest you also try to reach out to the team directly by raising this in the AWS Developer Forum or contacting the AWS Customer Support.

debora-ito avatar Dec 17 '19 21:12 debora-ito

Any fix in pipeline for this?

anilcs81 avatar Jan 03 '20 05:01 anilcs81

No word from the IAM team yet.

debora-ito avatar Jan 06 '20 20:01 debora-ito

Just tested this, and the tags are now present in GetRole() response.

debora-ito avatar May 19 '22 22:05 debora-ito

COMMENT VISIBILITY WARNING

Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar May 19 '22 22:05 github-actions[bot]