In this section, we will start creating our bucket for testing, we will add two prefixes named source/ and destination/ in the bucket to act as folders inside the bucket for demonstration.
The source/ folder will be for storing the source, unedited images that we’ve uploaded, and the destination/ folder will store images with a watermark after modification.
Amazon S3 has a flat structure instead of a hierarchy like you would see in a file system. However, for organizational simplicity, the Amazon S3 console supports the folder concept as a means of grouping objects by using a shared name prefix for the grouped objects.
Navigate to the search bar, type S3, and click on the service.
In the S3 console click on Create Bucket
Choose your preferred region for our S3 Bucket
Enter the name for the S3 bucket, make sure it follows the bucket naming scheme and is globally unique, I will name my bucket
lambda-watermark-bucket-_randomnumber_
We can leave the settings as default for simplicity then scroll down and click on Create Bucket
Wait for the success message from the console to make sure the bucket is created successfully.
You can copy the bucket name and ARN and put it in the clipboard or somewhere for later steps.
Go to the bucket we’ve just created by clicking on it from the bucket list. Now we can start creating folders
Click on Create Folder
Enter “source” as the name for the folder.
We can leave the settings as default and then click on Create Folder
Go back and your bucket structure will look something like this:
Great, now you have created the S3 bucket successfully! Move on to the next step.