Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit dbff4d7

Browse files
authored
Merge pull request #181 from mreferre/master
Added hints to the Web App workshop to open the S3 bucket publicly
2 parents 17fe0d1 + 8b2f5b6 commit dbff4d7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

WebApplication/1_StaticWebHosting/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,18 @@ You can define who can access the content in your S3 buckets using a bucket poli
159159

160160
You will need to add a bucket policy to your new Amazon S3 bucket to let anonymous users view your site. By default your bucket will only be accessible by authenticated users with access to your AWS account.
161161

162-
See [this example](http://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html#example-bucket-policies-use-case-2) of a policy that will grant read only access to anonymous users. This example policy allows anyone on the Internet to view your content. The easiest way to update a bucket policy is to use the console. Select the bucket, choose the permission tab and then select Bucket Policy.
162+
See [this example](http://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html#example-bucket-policies-use-case-2) of a policy that will grant read only access to anonymous users. This example policy allows anyone on the Internet to view your content. The easiest way to update a bucket policy is to use the console. Select the bucket, choose the permission tab and then select Bucket Policy. As a reminder, by default, all buckets are now created with additional guard-rails to prevent security misconfigurations and you need to relax the public bucket policies.
163163

164164
<details>
165165
<summary><strong>Step-by-step instructions (expand for details)</strong></summary><p>
166166

167167
1. In the S3 console, select the name of the bucket you created in section 1.
168168

169-
1. Choose the **Permissions** tab, then choose **Bucket Policy**.
169+
1. Choose the **Permissions** tab, then choose **Public access settings**.
170+
171+
1. Disable **Block new public bucket policies** and **Block public and cross-account access if bucket has public policies**.
172+
173+
1. Choose **Bucket Policy** in the **Permissions** tab.
170174

171175
1. Enter the following policy document into the bucket policy editor replacing `YOUR_BUCKET_NAME` with the name of the bucket you created in section 1:
172176

41.3 KB
Loading

0 commit comments

Comments
 (0)