This document explains how to create a policy for a bucket in Amazon Web Service's Simple Storage Service (Amazon S3™).
Before you can create a policy, you must create a bucket in Amazon S3. To create a bucket in Amazon S3, read Amazon's Create a Bucket documentation.
Create a policy for the bucket
To create a policy with Amazon 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 bucket name.
Click Validate Policy to confirm that your policy specifications function properly.
- Click Create Policy.