Create a bucket using the S3 API (with s3curl)
You can use the S3 API to create a bucket in an replication group. Because ECS uses custom headers (x-emc), the string to sign must be constructed to include these headers. In this procedure the s3curl tool is used; there are also a number of programmatic clients you can use, for example, the S3 Java client.
Before you begin
- To create a bucket, ECS must have at least one replication group configured.
- Ensure that Perl is installed on the Linux machine on which you will run s3curl.
- Ensure that curl tool and the s3curl tool are installed. The s3curl tool acts as a wrapper around curl.
- To use s3curl with x-emc headers, minor modifications must be made to the s3curl script. You can obtain the modified, ECS-specific version of s3curl from the EMCECS Git Repository.
- Ensure that you have obtained a secret key for the user who will create the bucket. For more information, see the ECS Data Access Guide, available from the ECS Product Documentation page.
About this task
Procedure
What to do next
You can list the buckets using the S3 interface, using:
./s3curl.pl --debug --id=my_profile http://<DataNodeIP>:9020/