Exercise 5.2 – Configuring public access to S3 buckets
In this exercise, we will configure the Amazon S3 bucket with a bucket policy (resource policy) that will allow users on the public internet to be able to access and read the index.html
web page you created earlier.
Remember that you could choose to restrict access to only a set of known users—for example, if you wanted only IAM users in your AWS account to have access to the objects. You can also configure cross-account access, in which you define principals that belong to another AWS account and grant them specific levels of access.
In this exercise, we want to grant anonymous access to the index.html
page because ultimately, we will be building out a static website hosting service using this bucket in later exercises. Proceed as follows:
- Navigate back to the S3 console and click on the bucket you just created, as illustrated in the following screenshot:
- Click...