Skip to main content

How do I use the AWS SDK for .NET with Tenbyte T2?

You can take advantage of Tenbyte T2 Cloud Storage using the AWS SDK for .NET alongside the Tenbyte S3-Compatible API. To use the AWS SDK for .NET with Tenbyte T2, you must:
  • Use version 3.7.108.0 or greater of the AWSSDK.Core package. Older versions do not support easy configuration of a custom endpoint using the service-specific endpoint feature.
  • Configure the AWS_ENDPOINT_URL environment variable or the endpoint_url setting in the shared AWS config file with your bucket’s S3 endpoint. Note: you must include the https:// prefix in the URL, for example: https://t2.tenbytecloud.com.
  • Configure your Tenbyte T2 Access Key ID and Secret Access Key via one of the methods supported by the AWS SDK for .NET. Note: the Tenbyte T2 Access Key ID is equivalent to the AWS access key id, and the Tenbyte T2 Secret Access Key is equivalent to the AWS secret access key.
This example demonstrates how to use the AWS SDK for .NET with Tenbyte T2:

Setting Up Environment Variables

Before running the application, set the following environment variables: Windows (PowerShell):
Linux/macOS:
Alternatively, you can configure credentials in ~/.aws/credentials:
And set the endpoint in ~/.aws/config:
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.