-
Notifications
You must be signed in to change notification settings - Fork 15
Include tags in Cognito Identity ListUserPools/ListIdentityPools API responses #573
Comments
Hi @zpbonjour thanks for the feature request. This would need to get rerouted to the Cognito team, as they own the underlying ListUserPools and ListIdentityPools APIs. (If you have a support plan we recommend reaching out through AWS Support with requests like these, otherwise we can forward them on your behalf.) I'm not sure if the Cognito team would consider this feature request though if your use case can be addressed using the list-tags-for-resources command. You can get the user pool ID via list-user-pools and then construct the ARN in this format with your region/account/id: |
@tim-finnigan I cannot get the correct user/identity pool by using An alternative would be adding the |
Thanks @zpbonjour for following up and elaborating further. I'll go ahead and transfer this issue to our cross-SDK repository as requests involving APIs apply to other SDKs in addition the AWS CLI. And I'll reach out to the Cognito Identity team for additional review and feedback on this request. (ref: P96282886) |
You might be able to use AWS Resource Explorer as a possible workaround. After Resource Explorer is setup, you could use the Search API and query for the tags you use. For example, if you had several Cognito user pools tagged with a key value of "sanboxCognitoUserPools", you could use a query similar to
From there you would get the ARN and could extract the user pool id (or identity pool id) and then call ListUserPools/ListIdentityPools API. |
I reached out to the cognito 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. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the feature
Currently list-user-pools outputs the following info:
and list-identity-pools:
I would like to see more descriptive information that will help narrow down the search for a specific pool. Tags would be super helpful for my use case.
Use Case
I am working on some workflow automation that needs to fetch a user and identity pool's id. Unfortunately, the name of the pool is not always uniform or known. However, there are some tags that I could use to find the intended pool. Right now, I am unable to search the tags unless I know the pool id as list-tags-for-resource requires an ARN and describe-identity/user-pool requires a pool id.
Proposed Solution
output the pool resource tags when listing pools with list-identity/user-pools so they can be used to locate a pool.
Other Information
All of my testing has been done in Cloud Shell but I intend to use this feature with Github Actions.
Acknowledgements
CLI version used
aws-cli/2.13.4 Python/3.11.4 Linux/4.14.255-314-253.539.amzn2.x86_64 exec-env/CloudShell exe/x86_64.amzn.2 prompt/off
Environment details (OS name and version, etc.)
Cloud Shell
The text was updated successfully, but these errors were encountered: