Bucket Policy
Last updated
Last updated
Permission is 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.
For 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, and 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 changed the sub-user name, I have used (Access user)
Action : "s3:GetObject"
Resource: "arn:aws:s3:::panktestbucket/*"
Now set all the values to click the save.
To 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