Create a Bucket with Object Lock
In this tutorial, you will learn how to create a Bucket with Object Lock using the IONOS Cloud Object Storage API.
Target audience
This tutorial is intended for developers and system administrators who are using AWS CLI or PowerShell to manage Object Storage compatible services. It assumes you have basic knowledge of the following:
AWS S3 services
Command line interfaces like AWS CLI and PowerShell
Object Lock feature for data protection
What you will learn
By the end of this tutorial, you will be able to:
Set up and configure AWS CLI and PowerShell for use with IONOS Cloud Object Storage.
Create a bucket with Object Lock enabled on creation.
Configure default object lock settings on your new bucket.
Before you begin
Before you start the tutorial, you should:
Have the AWS CLI and PowerShell installed on your system.
Obtain your IONOS Cloud Object Storage
Access Key IDandSecret Access Key.Be familiar with basic commands in AWS CLI and PowerShell.
Procedure
To begin creating a bucket with Object Lock, configure your local environment for IONOS Cloud Object Storage access.
Configure AWS CLI with IONOS Cloud Object Storage
Use the aws configure command to set up your access credentials and default region. You also need to specify the endpoint URL per request.
Configure PowerShell with IONOS Cloud Object Storage
Use the Set-AWSCredential command in PowerShell to set up your credentials. Remember to specify the endpoint URL using -EndpointUrl.
Create a new bucket with Object Lock enabled
The following commands only enable Object Lock at the bucket level without default settings.
a. Using AWS CLI
Execute the following command to create a new bucket:
b. Using PowerShell:
Use this PowerShell command:
Enable Default Object Lock Configuration (if required)
a. Using AWS CLI
b. Using PowerShell
Final result
Object lock is enabled for a newly created bucket using IONOS Cloud Object Storage API, AWS CLI, or Powershell commands.
Conclusion
In this tutorial, you learned how to:
Configure AWS CLI and PowerShell for IONOS Cloud Object Storage.
Create a bucket with Object Lock enabled at creation.
Apply default object lock settings to secure the contents of your bucket.
Next steps
Consider exploring additional configurations and features of IONOS Cloud Object Storage:
Learn how to manage Object Lock settings on existing objects.
Explore other advanced bucket configurations.
Last updated
Was this helpful?