230

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:

  1. Create a sandbox account
  2. Get these credentials
kenorb
  • 155,785
  • 88
  • 678
  • 743
Padraig
  • 3,197
  • 4
  • 18
  • 26

8 Answers8

256
  1. Go to: http://aws.amazon.com/
  2. Sign Up & create a new account (they'll give you the option for 1 year trial or similar)
  3. Go to your AWS account overview
  4. Account menu in the upper-right (has your name on it)
  5. sub-menu: Security Credentials
New Alexandria
  • 6,951
  • 4
  • 57
  • 77
Amit Talmor
  • 7,174
  • 4
  • 25
  • 29
  • Thanks for that Amit but I did that. However I don't want to send actual payments, etc. I wanted to mock all those transactions. That's why I wanted to get the sandbox. Maybe I'm missing something? – Padraig Jan 30 '14 at 03:44
  • 6
    AWS is pretty much for the first year. If you pick up 't1.micro' EC2 is does not cost you anything. all startups usually use it in the begging. you can start & stop your servers anytime you like via aws website and if something has a cost, you pay only on the actual usage. – Amit Talmor Jan 30 '14 at 07:27
  • 2
    @AmitTalmor Also, agreed that most startups use it while *begging* – New Alexandria Dec 17 '15 at 00:15
  • 3
    These are old instructions. See [Jace Browning's answer](https://stackoverflow.com/a/37947853/3129414) – arshovon Mar 15 '19 at 06:11
108
  1. Open the AWS Console
  2. Click on your username near the top right and select Security Credentials
  3. Click on Users in the sidebar
  4. Click on your username
  5. Click on the Security Credentials tab
  6. Click Create Access Key
  7. Click Show User Security Credentials
Sam Denty
  • 3,693
  • 3
  • 30
  • 43
Jace Browning
  • 11,699
  • 10
  • 66
  • 90
  • 6
    There is no security credentials option when clicking my username in the navbar. – SgtPooki Mar 12 '17 at 09:53
  • 3
    @SgtPooki it's called **My Security Credentials** :) – Enigo Apr 19 '18 at 14:57
  • 14
    I do not see `My security credentials` when clicking on my username on the top right corner. All I see are `Account`, `Organization`, `Service Quotas`, `Billing Dashboard`, `Switch Role`, `Signout`. – pacoverflow Feb 16 '22 at 16:21
56

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:

  1. go to IAM console: https://console.aws.amazon.com/iam
  2. click on "Users". (see image) enter image description here
  3. go to the user you need his access key. enter image description here

As i see the answers above, I can assume my answer will become irrelevant in a year max :-)

HTH

OhadR
  • 8,276
  • 3
  • 47
  • 53
30

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:

  1. Create a new access key:

enter image description here

  1. "Download the .csv key file, which contains the access key ID and secret access key.":

enter image description here

As for your other questions:

  • I'm not sure about MERCHANT_ID and MARKETPLACE_ID.
  • I believe your sandbox question was addressed by Amit's point that you can play with AWS for a year without paying.
Michael Currie
  • 13,721
  • 9
  • 42
  • 58
12

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.

Shin Kim
  • 4,911
  • 3
  • 29
  • 31
3

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 1. Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/.

  1. In the navigation pane, choose Users and then choose Add user.
nourza
  • 2,215
  • 2
  • 16
  • 42
0

When you create a new access key, you will get an option to copy and to download the AWS secret access key at step 3. Once you click Done button, I don't think you can copy the secret access key afterwards. You might have to delete that one and create new one to get secret key.

The .csv file will have both AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY

enter image description here

jab
  • 396
  • 3
  • 15
0

suppose by any chance you have already configured your local aws cli earlier.
now you need access-key-id and secret-access-key for any reason.
its saved in credentials folder of aws.
in macos
cd ~
ls -a
cd .aws
ls
open credentials

abhish
  • 243
  • 4
  • 8