Use this file to discover all available pages before exploring further.
In Object Storage, you work with files and folders called objects and place them in containers called buckets. This guide will help you upload files to buckets and download them.
Make sure you are in a group that has at least the editor role within your tenant; for example, the default editors group. You can check this in the Administration → IAM section of the web console.
Install and configure the AWS CLI. It provides simple commands for object management, like aws s3 cp to move objects between a bucket and a local computer and aws s3 rm to delete them.For more details on installing and configuring, see How to get started with Object Storage: Create your first bucket and the guide on the AWS CLI.
Each Object Storage object has a key — object ID in a string format. This key can contain prefixes — they act similar to directories, organizing objects into groups.To avoid issues with your objects, follow these requirements:
Object keys can be up to 1024 bytes long, case sensitive.
Use UTF-8 alphanumeric characters, slashes (/) and certain special characters.
The object is uploaded to the storage class that is set as default for the bucket.You can find more information on the cp command in the AWS CLI reference.
This command will upload a specified local file to your Object Storage bucket with a specified prefix:
The object is uploaded to the storage class that is set as default for the bucket. If you need a different class, add the --storage-class STANDARD or --storage-class ENHANCED_THROUGHPUT parameter to this command.
You can use the web console to create a folder in a bucket and upload files to it. With the AWS CLI, you can upload an entire local folder including its contents.
Web console
AWS CLI
To create a folder:
In the sidebar, go to Storage → Object Storage.
Select the bucket where you want to create the folder.
Click Add → Folder.
In the Create folder window, enter a name and click Create.
You can download a single object from an Object Storage bucket with the web console or AWS CLI. The AWS CLI also lets you download all objects with a specified prefix.
Web console
AWS CLI
In the sidebar, go to Storage → Object Storage.
Select the bucket that contains the object.
In the row of the object to download, click → Download.
To download a single object with a specified prefix from your Object Storage bucket to a destination on your local machine:
Assume that you already have an Object Storage bucket named quickstart-bucket. The example below shows how to upload objects to your bucket and download them using the AWS CLI.
Create a local folder from which you’ll upload files to your bucket:
mkdir lorem-ipsum
Create the files to upload. Run the commands from the code block below:
echo 'Lorem ipsum odor amet, consectetuer adipiscing elit. Posuere ullamcorper hendrerit faucibus pellentesque sociosqu montes. Tempus ut sit rutrum etiam sodales, porttitor congue condimentum nulla. Facilisis sodales habitant mi justo duis. Hendrerit praesent sit facilisi congue felis primis lobortis mattis nibh. Augue netus laoreet magna class enim fringilla molestie ipsum. Quisque natoque ligula lobortis accumsan potenti? Convallis pellentesque magna enim suscipit risus mauris molestie parturient quam.' > lorem-ipsum/lorem.txtecho 'Euismod porta phasellus bibendum urna dolor tincidunt dapibus eu maecenas. Aliquet eget gravida; tempus curae potenti class. Lectus nibh nam donec sagittis donec felis posuere libero. Suspendisse accumsan suscipit blandit orci platea iaculis ac. Suspendisse egestas aptent aliquam sapien ut maximus. Litora ridiculus augue mi, ut aliquam amet. Fusce dignissim nulla venenatis dis himenaeos habitasse. Blandit primis massa eros gravida rhoncus nascetur nulla' > lorem-ipsum/euismod.txtecho 'Litora integer iaculis libero dui pretium porta scelerisque. Dis laoreet ipsum porta viverra ipsum sem feugiat. Arcu ex natoque commodo faucibus facilisis vivamus sagittis; ultricies quis. Senectus vivamus nec cras porttitor penatibus. Ipsum vitae integer elementum; sem gravida etiam. Vivamus purus nunc nunc et aenean class. Tempor sagittis sociosqu erat class laoreet iaculis nec. Tempus ligula pellentesque a molestie fames elit vivamus.' > lorem-ipsum/litora.txt
This creates three text files in your new lorem-ipsum/ folder:
lorem.txt
euismod.txt
litora.txt
Upload all the files from your lorem-ipsum/ folder to your Object Storage bucket with the lorem-ipsum prefix:
upload: lorem-ipsum/lorem.txt to s3://quickstart-bucket/lorem-ipsum/lorem.txtupload: lorem-ipsum/litora.txt to s3://quickstart-bucket/lorem-ipsum/litora.txtupload: lorem-ipsum/euismod.txt to s3://quickstart-bucket/lorem-ipsum/euismod.txt
List the objects with the lorem-ipsum prefix in your bucket:
aws s3 ls s3://quickstart-bucket/lorem-ipsum --recursive --human-readable --summarize