How to set up AWS access credentials in your local ?

If you want to access AWS resources from your local machine using AWS SDK , you can’t do it by default.

You need to configure AWS access key id and AWS secret access key in your local.

You can do this using AWS cli.

Here is how to do it:

STEP1: Install AWS cli

You can dowload it from here:

https://aws.amazon.com/cli/

I am using a Windows machine , so I downloaded the windows installer.

Once downloaded , install the application by running the downloaded .msi file.

Advertisements

STEP2: Run aws configure command in command prompt

Once aws cli is installed , open a command prompt and run aws configure command:

Enter the AWS access key id and AWS secret access key when you are prompted for.

You can create/get these from your AWS console:

Also specify the default region you chose when you created an account in AWS.

The default output format can be chosen as json.

That’s it!

Now two files get created in your home folder:

You are all set now to access AWS resources from your local app!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s