Amazon Web Services compatible S3 Endpoints
Step-by-step guide using Amazon Web Services S3 compatible API Endpoints
Follow steps below:
- Source OpenStack credentials
- Get EC2 credentials:
openstack --os-interface public ec2 credentials list
- If you don't have any: create them with:
openstack --os-interface public ec2 credentials create
- Configure your S3 client with the appropriate access key and secret key:
s3cmd --configure
. When prompted to sethost_base
andhost_bucket
, uses3-kna1.citycloud.com:8080
for both. Also, set bothuse_https
andsignurl_use_https
toTrue
. - Create an S3 bucket:
s3cmd mb s3://foo
- Upload an object into the bucket:
echo "hello world" > bar; s3cmd put s3://foo/bar
- Set a public read ACL on the object:
s3cmd setacl --acl-public s3://foo/bar
- Fetch the object without an S3 client:
curl https://s3-kna1.citycloud.com:8080/<tenant_id>:foo/bar
(where<tenant_id>
is your project ID which is visible from the Manage projects page)
Explain the concept of s3 endpoints...
Item | Description |
---|---|
ec2 | ? |
s3 bucket | ? |