Step 6 - Restrict public storage

In this exercise we will configure S3 Block Public Access, an easy way to prevent public access to your S3 bucket.

  1. From the AWS console, click Services and select S3.

  2. Click the bucket name that you want to block public access.

  3. Click on the Permissions tab.

  4. Click Edit under the section ‘Block public access (bucket settings)’.

bpa_01.png

  1. Select Block all public access to prevent all sort of public access to your bucket.

  2. Click on Save changes.

bpa_02.png

  1. Confirm the settings by typing confirm in the field of confirmation dialogue box and click on Confirm.

  2. The buckets and objects will now have no public access as shown in the permission overview.

bpa_03.png

  1. You can also configure the policy to block public access to all the existing and newly created buckets in the account by clicking on S3 menu bar on left side of the S3 management console.

  2. Click on Block Public Access setting for this account.

  3. Click on Block all public access on the right side of the S3 management console.

  4. Click on Save changes.

bpa_04.png

  1. Confirm the settings by typing confirm in the field of confirmation dialogue box and click on Confirm.

  2. Click on Buckets and note that all of the buckets in your account no longer have a public access.

bpa_05.png

For more information please read the AWS User Guide: https://docs.aws.amazon.com/AmazonS3/latest/userguide/security.html