Configuring public access block

AWS Security Best Practice Warning: AWS strongly recommends keeping Block Public Access enabled. This tutorial disables it for learning purposes, but in production environments, you should use CloudFront with Origin Access Control (OAC) instead of making S3 buckets publicly accessible. See AWS Documentation for secure alternatives.

Configure public access block

To be able to access the hosted website we will reconfigure Block Public Access

  1. In the S3 bucket interface
  • Select Permissions
  • Currently, we see Block all public access is On

Block Public Access

  1. In the Block public access interface
  • Uncheck Block all public access
  • Select Save changes

Block Public Access

  1. Confirm confirm and select Confirm

Block Public Access

  1. Complete Block public access configuration

Block Public Access