Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Configuring existing Amazon S3 applications to work with Swarm consists of changing the region end-point and changing the authentication credentials.

title practice
Info
Tip

Best

Practice

Start with the documentation provided by Amazon Web Services and then use this section to help you integrate your S3 applications with the Swarm platform.

Within your S3 applications, change the following items:

  1. Region

...

  1. End-

...

  1. Point – Use the Swarm storage domain name

...

  1. instead of the Amazon S3 region end-point

...

  1. hostname

  2. Access Key – In the Content UI, create an S3 authentication token in the correct domain and bucket,

...

  1. then use that token ID as your Access Key ID.

...

  1.  For creating tokens in Content UI,

...

  1. see Setting Tokens.

  2. Secret Key – From the same token, use its secret key

...

  1. value in your S3 applications. 

  2. Update your configuration for best results:

...

    • Enable "path style" access to avoid certificate validation failure; otherwise, the client/SDK

...

    • may attempt to access

...

    • as mybucket.mydomain.example.com/object.

...

    • Use Version 2 signatures with the AWS .NET SDK for best performance.

...

...

    • Increase the part size to 100 MB or more for multipart uploads, if configurable.

...

Note

Warning

Old versions of the AWS S3 SDK for C# require that the “endpoint” contains “s3-” or “s3.” to avoid a 403 SignatureDoesNotMatch error when the object name has spaces or other special characters. The domain, or bucket if using “bucket in Host” style, must contain “s3” followed by a dot or dash. Upgrade to a recent C# SDK release (for example, 2021’s AWSSDK.S3 3.5.10.2 and AWSSDK.Core 3.5.3.9 or later) to avoid this requirement.