File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 }
2222]
2323```
24- 3 . In permissions, add the following bucket policy. Change "YOUR_BUCKET_NAME" to reflect name of the S3 bucket.
24+ 3 . Uncheck "Block all public access" under "Block public access (bucket settings)".
25+ 4 . In permissions, add the following bucket policy. Change "YOUR_BUCKET_NAME" to reflect name of the S3 bucket.
2526```
2627{
2728 "Version": "2008-10-17",
3940 ]
4041}
4142```
42- 4 . Uncheck "Block all public access" under "Block public access (bucket settings)".
43435 . Under "Object Ownership", check "ACLs enabled" and set "Object Ownership" to "Object writer"
44446 . Locate your AWS key and Secret Key. You can find this in the top AWS navigation under your name -> Security Credentials.
45457 . Update the following lines to your .env file:
@@ -48,6 +48,7 @@ AWS_ACCESS_KEY={AWS_ACCESS_KEY}
4848AWS_REGION={S3_BUCKET_REGION}
4949AWS_SECRET_KEY={AWS_SECRET_KEY}
5050S3_BUCKET={S3_BUCKET_NAME}
51+ S3_BUCKET_URL_BASE=https://{S3_BUCKET_NAME}.s3.{S3_BUCKET_REGION}.amazonaws.com/
5152```
5253
5354If your S3 bucket is in the US East (N Virginia) region (us-east-1), you'll
You can’t perform that action at this time.
0 commit comments