Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

iam: find roles by tags #697

Closed
2 tasks
jmklix opened this issue Feb 15, 2024 · 3 comments
Closed
2 tasks

iam: find roles by tags #697

jmklix opened this issue Feb 15, 2024 · 3 comments
Assignees
Labels
feature-request New feature or request iam service-api This issue pertains to the AWS API

Comments

@jmklix
Copy link
Member

jmklix commented Feb 15, 2024

Original feature request: awslabs/aws-sdk-rust#1061

Describe the feature

In order to find roles with certain tags one currently has to utilise aws_sdk_iam::client::Client:

list_roles does not have a filter to only return roles matching a certain tag key value pair. This leads to a potentially high amount of API calls when many roles have to be checked.

Use Case

Example use case:

AWS RDS IAM based authentication does not allow to trace back a certain IAM role (from postgres perspective) to the user which assumed a role. A workaround is to create dedicated IAM roles for each user that wants to access the db via IAM auth. As IAM role names are limited one needs to utilise tags to store additional meta information such as the user's user id, the corresponding db etc.

Creating a program that needs to identify the role which has to be assumed is difficult without using tags.

Proposed Solution

Provide a filter parameter that allows filtering against a tag key value pair.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

A note for the community

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue, please leave a comment
@jmklix jmklix self-assigned this Feb 15, 2024
@jmklix jmklix added feature-request New feature or request service-api This issue pertains to the AWS API iam labels Feb 15, 2024
@jmklix
Copy link
Member Author

jmklix commented Feb 15, 2024

P118531597

@jmklix
Copy link
Member Author

jmklix commented Oct 30, 2024

I reached out to the IAM team and shared your use case to gather more insights on your behalf. Since this issue isn’t directly actionable by the SDK team, and this repository is dedicated to SDK-related issues, I'll go ahead and close this ticket. If you have access to AWS support through the Developer Console, please consider creating a support ticket and referencing the ticket ID I shared above to receive updates directly from the service team. Otherwise, you can keep an eye on our release notes for news on when this is resolved.

@jmklix jmklix closed this as completed Oct 30, 2024
Copy link

This issue is now closed.

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or 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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request New feature or request iam service-api This issue pertains to the AWS API
Projects
None yet
Development

No branches or pull requests

1 participant