Skip to main content

How do I use the AWS SDK for JavaScript V3 with Tenbyte T2?

You can easily configure Tenbyte T2 Cloud Storage for use with the AWS SDK for JavaScript V3 using the Tenbyte S3-Compatible API. The following example shows a sample.js that creates a bucket and uploads a file:
Note: Make sure to replace the endpoint with your actual Tenbyte T2 endpoint from your Tenbyte console.
The following code sample shows the content of package.json:
The following code sample shows how to install dependencies:
The AWS SDK for JavaScript can read credentials from the shared credentials file, environment variables, and other mechanisms. See Setting Credentials in Node.js for details. For example, to use the shared credentials file, add your Tenbyte T2 credentials to ~/.aws/credentials as a separate profile:
Then run the following script:
The Tenbyte S3-Compatible API allows thousands of integrations to natively work with Tenbyte T2 Cloud Storage. If you are new to the Tenbyte S3-Compatible API, refer to the Getting Started guide. If you have issues using this SDK with Tenbyte T2, contact us at support@tenbyte.io.