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 26, 2018 in Cloud Computing by hemant
• 5,750 points
36 views

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+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,080 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,750 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
• 56,140 points
223 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,750 points
563 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
• 5,980 points
25 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,080 points
35 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,080 points
12 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
• 5,980 points
32 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,380 points
185 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,380 points
21 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 about help https://forums.aws.amazon.com/t ...READ MORE

answered May 7, 2018 in Cloud Computing by brat_1
• 7,080 points
112 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,750 points
233 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.