Skip to content

test-access-amazon-s3-storage ​

Allows to test the connection to an Amazon S3 storage.

Syntax:

shell
sfiler-config-cli [options] test-access-amazon-s3-storage [command options]
Command optionsRequired / OptionalDescription
-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:

This command tests the connection to an Amazon S3 storage.

shell
./sfiler-config-cli.sh -l my-user -p my-password -cf "conf/sfiler.conf" test-access-amazon-s3-storage -eo "https://s3.amazonaws.com" -r "ca-central-1" -aki "my-access-key" -sak "my-secret-access-key" -bn "my-s3-bucket"
shell
.\sfiler-config-cli.bat -l my-user -p my-password -cf "conf\sfiler.conf" test-access-amazon-s3-storage -eo "https://s3.amazonaws.com" -r "ca-central-1" -aki "my-access-key" -sak "my-secret-access-key" -bn "my-s3-bucket"

This command tests the connection to an S3-compatible storage served by MinIO, with path-style addressing.

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