'"Failed getting S3 bucket: NotFound: Not Found"

Having trouble with finding the S3 Bucket with the below code. The issue may be due to a security policy issue and wanted to reach out to the larger community if there was a set way that the bucket has to be set up for the bucket to be searchable.

// Load the AWS SDK for Node.js

const AWS = require('aws-sdk');

const s3 = require('@auth0/s3');

// // Set the region

onst client = s3.createClient({

maxAsyncS3: 20, // this is the default

s3RetryCount: 3, // this is the default

s3RetryDelay: 1000, // this is the default

multipartUploadThreshold: 20971520, // this is the default (20 MB)

multipartUploadSize: 15728640, // this is the default (15 MB)

s3Options: {

accessKeyId: "your s3 key",

secretAccessKey: "your s3 secret",

region: "your region",

// endpoint: 's3.yourdomain.com',

// sslEnabled: false

// any other options are passed to new AWS.S3()

// See: http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Config.html#constructor-property

},

});



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source