Bucket Policy
Last updated
Last updated
Permission are available to attach a policy to a bucket to define the actions that can take place on the bucket and the condition under which those actions can occur.
A bucket policy, you can edit an existing policy or delete it. Defining, editing, and deleting a bucket policy are described in this article.
Navigate to the manage and click on the Buckets
Select the Bucket, click for the bucket and select the Settings
Click the Permissions section, a policy template is provided that you can edit accordingly. Then click Save to save the policy.
For example, I have created a policy to access objects inside the bucket by following these steps.
Make sure first of all create a USER.
In this policy i have defined the
Effect- Allow
Principal: I have change the subuser name, I have use (Access user)
Action : "s3:GetObject"
Resource: "arn:aws:s3:::pankimages/*"
Now set the all the values to click the save.
For check the created policy, click on the Properties section.
Delete the Bucket policy
Navigate to the Buckets > Action > Settings > Properties and click on the delete