How do I get AWS_ACCESS_KEY_ID for Amazon?
Amazon Web-ServicesAccess KeysAmazon Web-Services Problem Overview
I'm totally new to AWS.
I downloaded some sample code from Amazon and I need to set a number of constants:
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
MERCHANT_ID
MARKETPLACE_ID
I just created an AWS account. I want some type of sandbox account so I can try out the code samples.
What are the exact steps I have to take to:
- Create a sandbox account
- Get these credentials
Amazon Web-Services Solutions
Solution 1 - Amazon Web-Services
- Go to: http://aws.amazon.com/
- Sign Up & create a new account (they'll give you the option for 1 year trial or similar)
- Go to your AWS account overview
- Account menu in the upper-right (has your name on it)
- sub-menu: Security Credentials
Solution 2 - Amazon Web-Services
- Open the AWS Console
- Click on your username near the top right and select My Security Credentials
- Click on Users in the sidebar
- Click on your username
- Click on the Security Credentials tab
- Click Create Access Key
- Click Show User Security Credentials
Solution 3 - Amazon Web-Services
Amazon changes the admin console from time to time, hence the previous answers above are irrelevant in 2020.
The way to get the secret access key (Oct.2020) is:
- go to IAM console: https://console.aws.amazon.com/iam
- click on "Users". (see image)
- go to the user you need his access key.
As i see the answers above, I can assume my answer will become irrelevant in a year max :-)
HTH
Solution 4 - Amazon Web-Services
Amit's answer tells you how to get your AWS_ACCESS_KEY_ID
, but the Your Security Credentials page won't reveal your AWS_SECRET_ACCESS_KEY
. As this blog points out:
> Secret access keys are, as the name implies, secrets, like your > password. Just as AWS doesn’t reveal your password back to you if you > forgot it (you’d have to set a new password), the new security > credentials page does not allowing retrieval of a secret access key > after its initial creation. You should securely store your secret > access keys as a security best practice, but you can always generate > new access keys at any time.
So if you don't remember your AWS_SECRET_ACCESS_KEY
, the blog goes on to tell how to create a new one:
- Create a new access key:
- "Download the .csv key file, which contains the access key ID and secret access key.":
As for your other questions:
-
I'm not sure about
MERCHANT_ID
andMARKETPLACE_ID
. -
I believe your sandbox question was addressed by Amit's point that you can play with AWS for a year without paying.
Solution 5 - Amazon Web-Services
It is very dangerous to create an access_key_id in "My Account ==> Security Credentials". Because the key has all authority. Please create "IAM" user and attach only some policies you need.
Solution 6 - Amazon Web-Services
To find the AWS_SECRET_ACCESS_KEY Its better to create new create "IAM" user Here is the steps https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html
-
Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/.
-
In the navigation pane, choose Users and then choose Add user.