Unable to change permission in S3 bucket

Hi Team,

Unable to change permission for S3 bucket to make it public. It is as part of lab AWS level 1 , Task no.24–> Create Public S3 Bucket

It is throwing error:

Unknown Error

An unexpected error occurred. Try again later. If the error persists, contact AWS Support for assistance .

API response

error on line 344 at column 8: Opening and ending tag mismatch: meta line 7 and head

I have got one solution though:

aws s3api put-public-access-block --bucket datacenter-s3-18951 --public-access-block-configuration BlockPublicAcls=false,IgnorePublicAcls=false,BlockPublicPolicy=false,RestrictPublicBuckets=false

So, from cloud shell it is working. But from console I am unable to disable the public access block and make the s3 public.

If that error is coming from the console, only AWS can fix that which they will do eventually.

Using the AWS CLI as you have done is perfectly acceptable, and actually a better way. In the real world nobody makes infrastructure changes via the console. It is always terraform, cloudformation or scripts using commands like the above as you then have an audit of what was done (storing scripts, templates etc in git), and a way to more easily change or undo things without having to remember what steps were done in the console.