AWS for System Administrators by Prashant Lakhera

AWS for System Administrators by Prashant Lakhera

Author:Prashant Lakhera [Prashant Lakhera]
Language: eng
Format: epub, mobi
Publisher: Packt Publishing
Published: 2021-02-12T00:00:00+00:00


Figure 11.18 – Edit block public access settings for selected buckets

As of this stage, we make our bucket public, but in order to grant all the objects inside the bucket read-only permission, we need to add an S3 bucket policy. To do this, again inside the bucket, navigate to Permissions | Bucket Policy and copy the following policy. This policy allows all the action s3:GetObject, which means that it grants read-only permission to all the plakhera.com bucket objects:{

"Version": "2012-10-17",

"Statement": [

{

"Effect": "Allow",

"Principal": "*",

"Action": "s3:GetObject",

"Resource": "arn:aws:s3:::plakhera.com/*"

}

]

}

Copy the preceding policy and click on Save:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.