How to create S3 bucket in AWS and add files.

How to create S3 bucket in AWS and add files.

Step 1 - Login to the AWS console.

Step 2 - Go to SERVICES.

Step 3 - click on storage.

Step 4 - Click on S3.

Step 5 - Click to create a bucket.

Step 6 - fill in all the required blocks. (make sure the bucket name would be unique. It's recommended to use lowercase letters, numbers, and hyphens (-), without any spaces.).

Step 7 - Select the desired configuration options for your bucket.

Block Public Access: Choose whether to enable or disable public access to your bucket and its contents. It's generally recommended to keep this disabled unless you have specific use cases that require public access.

Bucket Versioning: Enable versioning if you want to keep multiple versions of an object in your bucket. This can be useful for data backup or auditing purposes.

Default Encryption: Choose whether to enable default encryption for objects in your bucket. You can select AWS Key Management Service (KMS) encryption or Amazon S3-managed encryption keys.

Step 8 - Click to "create bucket".

step 9 - your bucket is created. Once the bucket is created, you can upload files to it, configure access permissions, and perform other operations using the AWS Management Console, AWS CLI, or SDKs.

Step 10 - To add an object to the bucket click to the bucket you created.

Step 11 - Click to add files. Then select the file you want to upload.

Step 12 - Click to Upload.

Step 13 - If you want to excess the object with the Object URL. You have to give the public permission to the bucket and object as well. Go to permissions

Step 14 - Untick to block all public access. And save changes.

Step 15 - For object permission. Click to edit.

Step 16 - Give the Read permission to object. Save changes.

Step 17 - Now you can access the object from the object URL in the browser. Copy the URL and paste it into a new tab.