AWS-S3 Bucket(Created & Deleted)

Uzma UsmaniUzma Usmani
2 min read

Uploading any object in S3

Open S3 Console.

Create bucket by clicking on create bucket.

Fill the general configuration.

Create bucket

Go to the created bucket.

Upload any object

Add files and upload.

Go to Permissions.

Go to Edit and uncheck the Block all public access then, Save changes.

Confirm it.

Go to Bucket policy and Edit.

Go to Policy generator.

Fill the following:

  1. Select Type of Policy- S3 Bucket Policy

  2. Principal-*

  3. Actions-Get Object

  4. ARN

    Copy ARN from the previous page and paste it by adding /* at the end**.**

  5. Add Statement

  6. Generate Policy

Copy the JSON Document.

Go to Bucket policy then, paste the JSON document and make Save changes.

Copy the URL from Objects.

Paste the URL on any browser to view the object.

Block the Bucket policy

  1. Permissions

  2. Block Public access

  3. Edit

  4. Block all public access(check it)

  5. Save changes

    Successfully blocked the Block Public Access.

    After blocking, you'll be unable to view the object.

    Delete the bucket

    At first delete the object.

    Write permanently delete.

  6. Delete successfully.

    Delete bucket

0
Subscribe to my newsletter

Read articles from Uzma Usmani directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Uzma Usmani
Uzma Usmani