Skip to content

add-amazon-s3-storage ​

Adds an Amazon S3 Cloud storage.

Syntax:

shell
sfiler-config-cli [options] add-amazon-s3-storage [command options]
Command optionsRequired / OptionalDescription
-nRequiredThe Amazon S3 storage name.
-dOptionalThe Amazon S3 storage description.
-eoOptionalThe Amazon S3 storage endpoint override.
-fpsOptionalTrue or False: address the bucket as a path (host/bucket) instead of a sub-domain of the host (bucket.host). Required by an S3-compatible storage served from a single host name without wildcard DNS, such as MinIO or Ceph. Defaults to False.
-rRequiredThe Amazon S3 storage region.
-akiRequiredThe Amazon S3 storage access key identifier.
-sakRequiredThe Amazon S3 storage secret access key.
-bnRequiredThe Amazon S3 storage bucket name.

Example:

shell
./sfiler-config-cli.sh -l my-user -p my-password -cf "conf/sfiler.conf" add-amazon-s3-storage -n "My Amazon S3 Storage" -d "My Amazon S3 Storage Description" -r "ca-central-1" -aki "my-access-key" -sak "my-secret-access-key" -bn "sfiler-vagrant"
shell
.\sfiler-config-cli.bat -l my-user -p my-password -cf "conf\sfiler.conf" add-amazon-s3-storage -n "My Amazon S3 Storage" -d "My Amazon S3 Storage Description" -r "ca-central-1" -aki "my-access-key" -sak "my-secret-access-key" -bn "sfiler-vagrant"

This command adds an S3-compatible storage served by MinIO, which requires path-style addressing.

shell
./sfiler-config-cli.sh -l my-user -p my-password -cf "conf/sfiler.conf" add-amazon-s3-storage -n "My MinIO Storage" -eo "https://minio.example.com:9000" -fps true -r "us-east-1" -aki "my-access-key" -sak "my-secret-access-key" -bn "sfiler-bucket"
shell
.\sfiler-config-cli.bat -l my-user -p my-password -cf "conf\sfiler.conf" add-amazon-s3-storage -n "My MinIO Storage" -eo "https://minio.example.com:9000" -fps true -r "us-east-1" -aki "my-access-key" -sak "my-secret-access-key" -bn "sfiler-bucket"

Executing this command will add new Amazon S3 storage. You can get detailed help on AWS S3 storage by consulting the following topic: AWS S3