1. Navigate to the S3 Console
- Open the AWS Management Console and go to S3.
- Click Buckets and use the filter to find company1-sales.

- Select company1-sales and switch to the Permissions tab.
- Scroll to Bucket policy and click Edit.
- At the top of the editor, choose Policy Generator instead of writing raw JSON.
2. Generate a Bucket Policy
In the Policy Generator form:
Click Add Statement, then Generate Policy.

3. Review and Customize the JSON
The generator outputs a JSON policy similar to this:Customize the Statement ID
Replace the auto-generated SID with something meaningful, for exampleJohnFullAccessToCompany1SalesBucket:
By default, this policy grants permissions only on the bucket itself. To allow object-level actions (e.g.,
GetObject, PutObject), add the ARN arn:aws:s3:::company1-sales/* to the Resource array.4. Apply the Policy
- Copy the finalized JSON.
- Paste it into the Bucket policy editor.
- Click Save changes.
company1-sales bucket.