Skip to content
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

Feature Request: Include members in attributes of aws_iam_group data source #7076

Closed
maxenglander opened this issue Jan 9, 2019 · 3 comments · Fixed by #7132
Closed

Feature Request: Include members in attributes of aws_iam_group data source #7076

maxenglander opened this issue Jan 9, 2019 · 3 comments · Fixed by #7132
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/iam Issues and PRs that pertain to the iam service.
Milestone

Comments

@maxenglander
Copy link
Contributor

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 or have submitted a pull request, please leave a comment

Description

Currently the aws_iam_group data source yields the group arn, path and group_id. I would like to also be able to retrieve the members of this group, e.g.

New or Affected Resource(s)

Only the aws_iam_group would be affected.

Potential Terraform Configuration

data "aws_iam_group" "my-group" {
  name = "operations"
}

resource "some_other_resource" "my-resource" {
  count = "${length(data.aws_iam_group.my-group.members)}"
  user_arn = "${lookup(data.aws_iam_group.my-group.members[count.index], "arn")}"
  user_id = "${lookup(data.aws_iam_group.my-group.members[count.index], "user_id")}"
  user_name = "${lookup(data.aws_iam_group.my-group.members[count.index], "user_name")}"
}
@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. service/iam Issues and PRs that pertain to the iam service. labels Jan 9, 2019
@bflad bflad added this to the v2.36.0 milestone Nov 8, 2019
@bflad
Copy link
Contributor

bflad commented Nov 8, 2019

Support for a new users attribute in the aws_iam_group data source has been merged and will release with version 2.36.0 of the Terraform AWS Provider, Thursday next week. Thanks to @kterada0509 for the implementation. 👍

@ghost
Copy link

ghost commented Nov 14, 2019

This has been released in version 2.36.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 for triage. Thanks!

@ghost
Copy link

ghost commented Dec 9, 2019

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.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Dec 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/iam Issues and PRs that pertain to the iam service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants