Is there a way to get IAM Credentials from Cognito Username Password from CLI

+2 votes

I wish to get IAM Credentials from an Identity Pool using Cognito user/pass authentication from the command line:

The problem is, I can't find anything in the AWS-CLI that does this in one-step or multiple steps of bash code. Do we have CLI tools for it?

Can we write a quick script to get IAM Credentials to plugin for testing an API.

Mar 27, 2018 in Cloud Computing by hemant
• 5,790 points
1,274 views

2 answers to this question.

+1 vote
Try doing it the other way round. IAM is to set the users to use the AWS services. Cognito is meant for user authentication ie for apps, API’s.

Consider this, if I have a pool, SampleTest-pool, First I will create an IAM user and give it an access to the SampleTest-pool; then I will use the access and secret keys, of the IAM user, within the application with the Cognito pool properties (id, region) to contact the user pool for authentication purposes.

Now if you have 100 users to your one application, then you have one IAM user and 100 Cognito users.
answered Mar 27, 2018 by brat_1
• 7,200 points
0 votes

Cognito is for user authentication to your apps, apis.

For example, if I have a pool, test-pool, I create an IAM user and give it an access to the test-pool; then I will use the access and secret keys, of the IAM user, within the application with the Cognito pool properties (id, region) to contact the user pool for authentication purposes.

answered Oct 11, 2018 by findingbugs
• 4,780 points

Related Questions In Cloud Computing

0 votes
2 answers

Is there a way to copy AMI from one AWS account to another AWS account using boto?

You could share the AMI from one ...READ MORE

answered Aug 21, 2018 in Cloud Computing by Priyaj
• 58,020 points
2,255 views
+2 votes
2 answers

Is there a way to add cache control in AWS S3?

use of  current upstream master branch will ...READ MORE

answered Apr 10, 2018 in Cloud Computing by hemant
• 5,790 points
8,665 views
0 votes
1 answer

Is there a way to find out the number of objects stored in an S3 bucket?

Frankly, that is not possible. This is ...READ MORE

answered Apr 17, 2018 in Cloud Computing by code_ninja
• 6,300 points
887 views
0 votes
1 answer

Is there a way to transfer files between AWS s3 and ec2

The answer is a definite yes yes. ...READ MORE

answered Apr 17, 2018 in Cloud Computing by brat_1
• 7,200 points
883 views
0 votes
1 answer

Is there a way to test codes that are written against AWS API?

Please note that you should not integrate ...READ MORE

answered Apr 17, 2018 in Cloud Computing by brat_1
• 7,200 points
557 views
0 votes
1 answer

Is there a way to import custom SVG shapes(clipart) directly into Dia?

If you are fine with compromising advanced ...READ MORE

answered Apr 18, 2018 in Cloud Computing by code_ninja
• 6,300 points
1,301 views
0 votes
1 answer

Is there a way to use websockets for streaming S3 bucket?

I believe that’s not possible natively in ...READ MORE

answered May 10, 2018 in Cloud Computing by DragonLord999
• 8,450 points
2,112 views
0 votes
1 answer

Is there a way to simulate perimeter security using Amazon Web Services Model?

As we all know traditional perimeter security ...READ MORE

answered Jul 9, 2018 in Cloud Computing by DragonLord999
• 8,450 points
715 views
0 votes
1 answer

Is there a way to use amazon ECR image from one account in the code build of another account?

These forums might just help with AWS ...READ MORE

answered May 7, 2018 in Cloud Computing by brat_1
• 7,200 points
1,650 views
+3 votes
3 answers

Is there a way to install apache drill on an EMR cluster on AWS that is already Running?

It looks to be trying to get ...READ MORE

answered Oct 11, 2018 in Cloud Computing by findingbugs
• 4,780 points
2,397 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP