This document explains how to create a policy for a bucket in Amazon Web Service's (AWS) Simple Storage Service (S3).
Before you can create a policy, you must create a bucket in AWS's S3. To create a bucket in AWS's S3, read Amazon's Create an Amazon Web Service (AWS) Bucket documentation.
Create a policy for the bucket
To create a policy with AWS's S3, perform the following steps:
- Log in to your AWS console.
- Under Security, Identity, & Compliance, click IAM.
- Click Policies in the left navigation menu.
Click Get Started.
This option only displays the first time that you create a bucket. If this is not your first time to create a bucket, then this step will not display.
Click Create Policy near the top of the interface.
- Click Select next to the Create your own policy option.
- Enter a policy name.
Create a policy document that resembles the following example:
Replace all references to
$BUCKETwith your policy name.
Click Validate Policy to confirm that your policy specifications function properly.
- Click Create Policy.