Uploading objects to a directory bucket
After you create an Amazon S3 directory bucket, you can upload objects to it. The following examples show how to upload an object to a directory bucket by using the S3 console and the AWS SDKs. For information about bulk object upload operations with S3 Express One Zone, see Object management.
Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/
. -
In the left navigation pane, choose Buckets.
-
Choose the Directory buckets tab.
-
Choose the name of the bucket that you want to upload your folders or files to.
-
In the Objects list, choose Upload.
-
On the Upload page, do one of the following:
-
Drag and drop files and folders to the dotted upload area.
-
Choose Add files or Add folder, choose the files or folders to upload, and then choose Open or Upload.
-
-
Under Checksums, choose the Checksum function that you want to use.
(Optional) If you're uploading a single object that's less than 16 MB in size, you can also specify a precalculated checksum value. When you provide a precalculated value, Amazon S3 compares it with the value that it calculates by using the selected checksum function. If the values don't match, the upload won't start.
-
The options in the Permissions and Properties sections are automatically set to default settings and can't be modified. Block Public Access is automatically enabled, and S3 Versioning and S3 Object Lock can't be enabled for directory buckets.
(Optional) If you want to add metadata in key-value pairs to your objects, expand the Properties section, and then in the Metadata section, choose Add metadata.
-
To upload the listed files and folders, choose Upload.
Amazon S3 uploads your objects and folders. When the upload is finished, you see a success message on the Upload: status page.
The following put-object
example command shows how you can use the
AWS CLI to upload an object from Amazon S3. To run this command, replace the
with your
own information.user input placeholders
aws s3api put-object --bucket
bucket-base-name
--zone-id
--x-s3 --keysampleinut/file001.bin
--bodybucket-seed/file001.bin
For more information, see put-object