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_URLenvironment variable or theendpoint_urlsetting in the shared AWS config file with your bucket’s S3 endpoint. Note: you must include thehttps://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.
Setting Up Environment Variables
Before running the application, set the following environment variables: Windows (PowerShell):~/.aws/credentials:
~/.aws/config: