black-bits / laravel-cognito-auth

MIT License
89 stars 53 forks source link

Can not fetch the AWS_COGNITO_KEY and AWS_COGNITO_SECRET. #13

Closed eric0324 closed 5 years ago

eric0324 commented 5 years ago

Hi

I try to create a new IAM Role with the following Access Rights:

AmazonCognitoDeveloperAuthenticatedIdentities AmazonCognitoPowerUser AmazonESCognitoAccess

But I cannot fetch the AWS_COGNITO_KEY and AWS_COGNITO_SECRET?

Please help me understand it

Thanks.

araeuchle commented 5 years ago

Hey and sorry for the late reply. If you create a new IAM role, you will be asked on the first page for the access type. Here you need to select the first checkbox: Programmatic access. Then you create a custom group and add those access rights to it. Once done, you click on create user and you should see a page where you get two credentials, those are your AWS_COGNITO_KEY and AWS_COGNITO_SECRET. It must be called something like access key id and secret access key. Something like that. I hope that helps you and you can fetch the credentials.

Best Regards.

eric0324 commented 5 years ago

@araeuchle

I try to create a new IAM role

Imgur

but I can not found Programmatic access

pratikjoshibyjus commented 4 years ago

same here @eric0324 @araeuchle I too cant find Programmatic acceess

pratikjoshibyjus commented 4 years ago

I got it, its simply access key secret key. Create user say A. goto users >> https://console.aws.amazon.com/iam/home?region=us-east-1#/users and Assign him 3 policies.