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 options | Required / Optional | Description |
|---|---|---|
| -eo | Optional | The Amazon S3 storage endpoint Override. |
| -fps | Optional | True 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. |
| -r | Required | The Amazon S3 storage region. |
| -aki | Required | The Amazon S3 storage access key identifier. |
| -sak | Required | The Amazon S3 storage secret access key. |
| -bn | Required | The 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"