AWS node JS: Creating AWS credential file

0 votes
I am at using AWS SDK for JavaScript. For that I need to create a credential file.

Somehow, I can’t create this file as described for Windows. On Windows systems I am supposed to save the files here: C:\Users\USERNAME\.aws\credentials.

I am having difficulty creating a path for .aws.

Also ruining npm install aws-sdk --save as indicated on the resource page, there are no such folders created for me to add the file.

Is there a way to achieve this?
May 11, 2018 in Cloud Computing by code_ninja
• 6,220 points
28 views

1 answer to this question.

0 votes

Yes, you may either do this automatically or manually, let’s look at it one by one:

Lets us first see how to do this automatically:

You need AWS CLI install those to get an access to running AWS commands from the command line. For a windows machine, you need to open up CMD prompt and run the following command:

aws configure

Provide Access Key ID and Secret Access Key as well as your preferred region and data type.

 It will create the .aws/credentials file for you.

To do it manually

You need Open CMD in the C:\Users\USERNAME directory (should be default)

Run the following command in CMD: mkdir .aws

Create the credentials file and add your credentials manually

answered May 11, 2018 by Meci Matt
• 9,420 points

Related Questions In Cloud Computing

+4 votes
6 answers

Creating Amazon Web Service (AWS) account (trial version) without giving up credit card details

Unfortunately, you can’t create an account on ...READ MORE

answered Mar 29, 2018 in Cloud Computing by brat_1
• 7,080 points
1,041 views
+1 vote
3 answers

AWS EC2: Is it possible to edit httpd.conf file in

It would be prompting you a alert, ...READ MORE

answered Aug 17, 2018 in Cloud Computing by Priyaj
• 56,900 points
682 views
+1 vote
2 answers

AWS: s3 file downloads not working in Chrome specifically

The canonical Internet media type for a PDF document ...READ MORE

answered Sep 4, 2018 in Cloud Computing by eatcodesleeprepeat
• 4,670 points
691 views
0 votes
0 answers
+3 votes
3 answers

Is there a way to install apache drill on an EMR cluster on AWS that is already Running?

It looks to be trying to get ...READ MORE

answered Oct 11, 2018 in Cloud Computing by findingbugs
• 4,750 points
309 views
+4 votes
4 answers

AWS S3 cli isn’t working on Windows server

The error message has nothing to do ...READ MORE

answered Aug 20, 2018 in Cloud Computing by Priyaj
• 56,900 points
153 views
+3 votes
3 answers

Is it possible to delete a API in AWS API Gateway?

Yes, it is possible to delete an ...READ MORE

answered Mar 27, 2018 in Cloud Computing by brat_1
• 7,080 points
665 views
+4 votes
3 answers

AWS API Gateway with AWS WAF

Well that is not possible, Reason: API Gateway would ...READ MORE

answered Mar 27, 2018 in Cloud Computing by code_ninja
• 6,220 points
397 views
+1 vote
2 answers

AWS: Four node cluster on Hadoop

Follow the following step one by one ...READ MORE

answered Aug 21, 2018 in Cloud Computing by Priyaj
• 56,900 points
33 views
0 votes
1 answer

Can you filter through the created tags by using S3 file tagging?

You cannot filter with S3 file tagging ...READ MORE

answered May 8, 2018 in Cloud Computing by Meci Matt
• 9,420 points
20 views