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:
I am using a Windows machine , so I downloaded the windows installer.
Once downloaded , install the application by running the downloaded .msi file.
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.
Now two files get created in your home folder:
You are all set now to access AWS resources from your local app!