How to create a folder in AWS S3 bucket

How to create a folder in AWS S3 bucket?

You can create a folder in S3 bucket either from AWS management console or using AWS API.

Create a new folder in AWS S3 bucket from management console:

  1. Log in to the AWS management console
  2. Navigate to your S3 bucket and get inside the bucket.
  3. Click on “Create folder” to create a new folder.

How to create a folder in AWS S3 bucket

  1. Provide a name to the folder and click “Create folder”

How to create a folder in AWS S3 bucket

Create a new folder in AWS S3 bucket using AWS CLI:

Additional resource: replicate your entire local directory structure in AWS S3 bucket

You can also upload your entire directory structure in AWS S3 bucket from your local system. In this way you can create multiple folders in AWS S3 bucket at once. You also have option to choose file extension to include or exclude while uploading to S3 bucket.

Note: You cannot create multiple folders (keys) inside your bucket without any files (objects) inside them.

Hope this solves your issue, keep learning and keep sharing.

Debjeet

Leave a Reply

Close Menu