28

In AWS, how do I use my Access Key ID and Secret Access Key?

I can't use them in IAM users sign-in link.

helloV
  • 50,176
  • 7
  • 137
  • 145
richersoon
  • 4,682
  • 13
  • 44
  • 74

3 Answers3

19

To complement helloV's answer : you can also use the access key and secret key to generate a signed URL to the console. This signed URL will allow to access the console, without being prompted for username and password.

Many AWS customers are using this technique to provide single-sign on for Federated users.

More details are available at : http://docs.aws.amazon.com/STS/latest/UsingSTS/STSMgmtConsole-manualURL.html

Sébastien Stormacq
  • 14,301
  • 5
  • 41
  • 64
18

Access Key ID and Secret Access Key are for API/CLI/SDK access. For IAM sign-in (dashboard) you need the username and password. When a new IAM user is added, the user gets username, password, access key and secret key, and the IAM URL from the IAM admin.

helloV
  • 50,176
  • 7
  • 137
  • 145
  • I'm follwing : http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/s3transferutility.html ....... where in the android call do you specify the Access Key ID and Secret Access Key?? – Mike6679 Mar 31 '17 at 22:25
  • @Mike6679 if you use the IAM roles as described under `Grant Access to Your S3 Resources` in that link, you do not need to specify the access key and the secret key. – helloV Mar 31 '17 at 23:06
  • but where would the Access Key ID and Secret Access Key be specified if you had to ? – Mike6679 Apr 01 '17 at 00:28
1

Just to add, for anyone who might need it, if your intent is to use the AWS CLI, running aws configure will prompt you for both.

jimh
  • 1,651
  • 2
  • 15
  • 28