Object Storage - Get started
Last updated
Last updated
Connect to ITCare and access the Storage section from the main menu on the left. Click on "Create an Object Store"
Select The "Data Center" (also named Region) that will own your Object Store:
When Geo-Replication is Enabled, Objects are available on both endpoint.
The Geo Replication can't be Enabled or Disabled once the Object Store is created.
Search and select a "Global Service":
Enter a name to your Object Store (see Limitation & Best Practices#Limitations)
You can also set a "Quota". The quota can be changed at any time after the creation of the Object Store.
Your Object Store name will be prefixed by "cos" + the Cloud Name of the service global selected : cos-<cloud_name>-<Your Object Store name>
Example: cos-cegedimit-hello
The last step the summary of your Object Store creation request.
You check if information are correct. Click on the "Submit" button to launch the creation.
Once the creation is done (it can take few minutes), a pop-up appear, displaying your credentials and available endpoints for your Object Store:
User Name → is your access_key
Password → is your secret_key
Keep your secret_key safe, it will not be displayed anymore.
You have the possibility to regenerate, see Manage Object Users.
If you selected a Data center with Geo-Replication enabled (Step 2), you will have 2 endpoints, one for each Data Centers.
If you selected a Data center with Geo-Replication disabled (Step 2), you will have only 1 endpoint, corresponding to the Data Center selected.
This page show detailed information about your Object Store:
The service global which the Object Store is part of
The data center where the Object Store is located
Global size and numbers of object
Quota status
Object users
You also to possibility to manage:
Quota
Object Users
Delete the Object Store
You have created your Object Store, it's time now to create a Bucket:
We use aws s3 and aws s3api command line tools from AWSCLIv2 on Linux.
${S3_ENDPOINT}
and${S3_PROFILE}
are environment variables.
Use the command "mb
" to create a Bucket:
List Buckets :
We have now a Bucket, let's upload objects in it:
We use aws s3 and aws s3api command line tools from AWSCLIv2 on Linux.
${S3_ENDPOINT}
and${S3_PROFILE}
are environment variables.
Use the command "cp
" to upload an object:
You can specify a prefix when you upload an object to a Bucket:
You can specified a Quota on your Object Store in order to limit space used.
When the Quota is reached, upload in buckets in the Object Store are denied.
To manage Quota, go the detailed information page of your Object Store and click on the Manage quota button.
You can set Quota from 1Gb up to 8Tb.
If you need more than 8Tb Quota, please contact cegedim.cloud.
Once Quota applied, on can you follow the status of the Quota on the detailed information page of your Object Store:
When the Quota limit is reached, upload is denied (HTTP 403 Forbidden):
S3 Browser is a freeware for Windows desktops (only). It offers basic functionalities with free version. For advanced features, the pro version must be acquired.
AWS CLI is the official AWS command line interface. It offers all functionalities and best performance to use with cegedim.cloud Object Storage Service.
s5cmd is an alternative to aws cli, is a very fast S3 and local filesystem execution tool.
We recommend to use official AWS SDK:
If you are using a Geo-Replicated Object Store, your objects will be available on both regions of cegedim.cloud Object Storage Service.
Best practice would be to use a client with built-in capability to switch over the two regions, and then:
Automatically fail-over to second region when primary is down
Have no configuration to do to enable fail-over of your application in another region
Emptying a Bucket is irreversible.
Deleted Objects or Buckets can't be restored.
Delete operation can take time depending on the number of objects and versions stored in the bucket.
You can use any S3 CLI tools, like AWS CLI, s3cmd or s3browser.
You can empty a bucket using this kind of tools only if the bucket does not have "Versioning enabled". (See Manage versioning in Bucket)
If versioning is not enabled, you can use the rm (remove) command with the --recursive
parameter to empty the bucket (or remove a subset of objects with a specific key name prefix).
The following rm
command removes objects that have the key name prefix doc, for example, doc/doc1
and doc/doc2
.
Use the following command to remove all objects without specifying a prefix.
You can't remove objects from a bucket that has versioning enabled. S3 adds a delete marker when you delete an object, which is what this command does.
See Bucket Lifecycle for more information.
You can't remove objects with Object Lock enable until the retention period defined is reached.
If you use a lifecycle configuration to empty your bucket, the lifecycle configuration should include:
You can add lifecycle configuration rules to expire all objects or a subset of objects that have a specific key name prefix. For example, to remove all objects in a bucket, you can set a lifecycle rule to expire objects one day after creation.
If your bucket has versioning enabled, you can also configure the rule to expire non-current objects.
To fully empty the contents of a versioning enabled bucket, you will need to configure an expiration policy on both current and non-current objects in the bucket.
You can add lifecycle policy on the bucket using AWS CLI or GUI Client like s3browser.
For more information about lifecycle configuration, see Bucket Lifecycle.
Find below some lifecycle policies to empty bucket: