Whenever I try to apply the same policy as in the lab, I get the error message as follows,
You either don’t have permissions to edit the bucket policy, or your bucket policy grants a level of public access that conflicts with your Block Public Access settings. To edit a bucket policy, you need the s3:PutBucketPolicy permission. To review which Block Public Access settings are turned on, view your [account] and [bucket] settings. Learn more about [Identity and access management in Amazon S3 ]
Multiple AWS users will need access to this bucket, but each of them requires different permissions. To restrict user access, Access Points will be utilized.
The first step is to delegate policies to the access point from the bucket. Create the required bucket policy.