hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.84k stars 9.19k forks source link

[New Data Source]: aws_identitystore_users #40016

Closed miki725 closed 1 week ago

miki725 commented 1 week ago

Description

Currently there is already aws_identitystore_user data source however it can only query for a specific user whereas AWS supports querying multiple users via list-users:

https://docs.aws.amazon.com/cli/latest/reference/identitystore/list-users.html

would be nice if same resource will be exposed in the aws provider

Requested Resource(s) and/or Data Source(s)

Potential Terraform Configuration

data "aws_ssoadmin_instances" "example" {}

data "aws_identitystore_users" "example" {
  identity_store_id = tolist(data.aws_ssoadmin_instances.example.identity_store_ids)[0]
}

it can then expose an attribute users which will have similar shape as attributes of aws_identitystore_user data source.

References

https://docs.aws.amazon.com/cli/latest/reference/identitystore/list-users.html

Would you like to implement a fix?

No

github-actions[bot] commented 1 week ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

justinretzolk commented 1 week ago

Hey @miki725 ๐Ÿ‘‹ Thanks for taking the time to submit this issue. It looks like this is a duplicate of #39859. We like to try to keep discussions consolidated, so weโ€™re going to close this new issue in favor of that one.

justinretzolk commented 1 week ago

Duplicate of #39859

github-actions[bot] commented 1 week ago

[!WARNING] This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

miki725 commented 1 week ago

oh. I swear I tried looking for existing ticket but could not find one