reginapizza / uploaderApi

0 stars 0 forks source link

Configure the AWS SDK for Javascript #4

Open reginapizza opened 5 years ago

reginapizza commented 5 years ago

Per our research in issue #2 we found that we want to use AWS's SDK for Javascript to integrate our application with S3.

We found some examples of this setup:

// Load the SDK for JavaScript
var AWS = require('aws-sdk');
// Set the Region 
AWS.config.update({region: 'us-west-2'});

According to our setup, our region is US East (N. Virginia), which will be in the code as us-east-1

reginapizza commented 5 years ago

Part of the above includes requiring the aws-sdk npm package. We found steps for installing that here: https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/getting-started-nodejs.html?shortFooter=true