-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Data Source : aws_iam_roles #14470
Comments
I had exactly that same requirement today 👍 |
Related to the ask: #14173 A resource like this more closely matches similar lookup requirements like the aws_subnet_ids data source. |
Hello, I've taken a bit of a different approach to solve this issue in #18048. Instead of listing all roles based on a filter, I try to find the role that matches the Permission Set for which it was created. Feel free to have a look there and to comment on it 😅 |
This functionality has been released in v3.55.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description
It would be helpful to have a terraform data source that lists all the AWS IAM roles that exists in an account. An example of a use case where this would be useful is for roles created by AWS SSO in different accounts in an AWS Organization, the roles end up with a known prefix, but the last few characters are randomly generated (e.g.: AWSReservedSSO_Administrators_3785d47bba2d9cde4).
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: