How to create an immutable policy for your Amazon S3 bucket?
- In the AWS management console. Enter "iam" in the search bar.
- On the [IAM] “Manage access to AWS resources” tile. Click on [Policies].
- Click on [Create Policy].
- In the Policy editor click on the [JSON] option.
- To prepare the policy script, replace all instances of [BucketName] with your own bucket name.
- Copy and Paste your custom script into the Policy Editor.
- Click on [Next] to continue.
- Enter the Policy name.
- Click on [Create Policy].
- The Policy created.