Adding a Folder in Amazon S3 Bucket
Create an AWS account and an IAM role. Identity and Access Management (IAM) helps you secure the services you want to use by providing authentication and authorization as per your team’s requirements. Use the IAM role for accessing the S3 bucket data instead of directly using your main or root account.
Step 1: Log in to the Amazon S3 Console
Login to the amazon console using your credentials and navigate to S3.
Step 2: Create An Amazon S3 Bucket
- After Sign in to your Amazon console and navigate to Amazon S3. Click on Create bucket to proceed.
Step 3: Configure The Amazon S3 Bucket
- Select an AWS Region and enter a unique bucket name to create a new bucket.
Step 4: Select the Bucket
- Upon successful creation, you can see the list of buckets in the AWS Management Console.
Step 5: Create Folder on your S3 Bucket
- Click on upload and create a new folder on the S3 bucket.
- On successful creation, you’ll see the folder in your bucket’s object list.
Step 6: Add Files to your Folder
- Add few files to your folder by clicking on the upload button.
- You can see 3 files are added below.
How to Create Subfolders in S3 Bucket using AWS CLI
The AWS Simple Storage Service (S3) is a cloud service provided by Amazon Web Services (AWS) to store your data securely. There are different approaches to storing and retrieving data from AWS S3; one of them is using the AWS CLI provided by Amazon Web Services. In this article, we will provide you with step-by-step instructions on how to use AWS CLI to create subfolders in an AWS S3 bucket.