0

I'm trying to get a list of users in AWS running the command:

aws cognito-identity list-identities --max-results 60 --identity-pool-id ap-southeast-2:xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Where 'ap-southeast-2:xxxxxxxxxx' is found in AWS console/Federated Identities/Identity Browser.

My AWS CLI is set to default region ap-southeast-2 and the identity ID passed in is definitely correct.

meds
  • 21,699
  • 37
  • 163
  • 314

1 Answers1

1

You are trying to use a Cognito User Pool ID. Identity Pool and Cognito User Pool are separate things.

An identity pool ID is of the below format:

aws-region:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

To find the identity pool, go the AWS Cognito Console -> Manage Federated Identities. To get the ID of the identity pool, click Edit.

Yeshodhan Kulkarni
  • 2,844
  • 1
  • 16
  • 19
  • I shoud have been more clear, that is how the id is formatted. This is the screen I'm getting the IDs from (let me know if I'm in the wrong place): https://i.imgur.com/kEzCNGb.png – meds Nov 28 '17 at 10:48
  • you are trying to use the identities not the identity pool itself. Click on the "Edit Identity Pool" link on the top right corner in the same screenshot and use the displayed when you edit. – Yeshodhan Kulkarni Nov 28 '17 at 10:50
  • yep you were right! this aws ID stuff is so confusing hehe. thanks for your help! – meds Nov 28 '17 at 10:52