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.86k stars 9.21k forks source link

[New Data Source]: aws_identitystore_users #39859

Open ghicks-novaprime opened 1 month ago

ghicks-novaprime commented 1 month ago

Description

I'd like to see aws_identitystore_users added as a data source. Its output would be analogous to aws_identitystore_groups - a list of users provisioned in the identity store.

This would be particularly useful for using Terraform to onboard new employees or customers. For example, say my users are provisioned via a different HR process. I can use this with for_each to create a personal S3 bucket for each new user, and manage access and lifecycle policies accordingly.

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

Potential Terraform Configuration

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

References

Issue #26770 requested adding both aws_identitystore_groups and aws_identitystore_users data sources, but was closed when aws_identitystore_groups was added.

Would you like to implement a fix?

None

github-actions[bot] commented 1 month ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

ghicks-novaprime commented 1 month ago

Just discovered there's an existing pull request for this: #31688