Policy Builder
Write a custom policy of your own, one statement at a time. Or pick the tasks you need to do and get a recommended set of AWS managed policies that together grant them. Only policies with reviewed guidance are recommended. The result is a recommended set to start from: check the exact actions before you attach anything.
Write a custom policy
Build an identity-based policy one statement at a time and get the JSON to copy or download. Services, actions, resource formats and condition keys come from AWS's public service reference data. Everything you type stays in your browser.
What a statement contains
- Effect
- Says whether the statement allows or denies the actions it lists.
- Action
- Lists the service operations the statement covers, such as
s3:GetObject. - Resource
- Names the resources, by ARN, that the actions apply to;
*means all of them. - Condition
- Optionally limits the statement to requests that match a key, an operator and a value.
Rules the generator follows
- Every document sets
"Version": "2012-10-17", the current version of the policy language (IAM User Guide, IAM JSON policy elements: Version). - A customer managed policy can't exceed 6,144 characters, and IAM doesn't count white space toward that size (IAM User Guide, IAM and AWS STS quotas).
To see which actions a service offers, open it from the services list: each service page lists its actions.
The form needs JavaScript to run.
Recommend managed policies
5 groups, 34 tasks. Each task lists the exact actions it needs.
Amazon S3 access points
Storage. Creating, deleting and managing the policies of access points for general purpose buckets.
Create access points
Create an access point that is associated with a bucket.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSMcpServiceActionsFullAccessOperator
- AmazonS3FullAccessHigh privilegeAdmin
- AmazonElasticMapReduceFullAccessHigh privilegeAdmin
Required actions (1)
- s3:CreateAccessPoint
Delete access points
Delete an access point.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSMcpServiceActionsFullAccessOperator
- AmazonS3FullAccessHigh privilegeAdmin
- AmazonElasticMapReduceFullAccessHigh privilegeAdmin
Required actions (1)
- s3:DeleteAccessPoint
View access point policies
Retrieve an access point policy and whether the access point is public.
Read-only task. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AmazonS3ReadOnlyAccessReader
- AWSPartnerLedSupportReadOnlyAccessOperator
- SecurityAuditOperator
Required actions (2)
- s3:GetAccessPointPolicy
- s3:GetAccessPointPolicyStatus
Set or delete access point policies
Put or delete an access point policy.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSMcpServiceActionsFullAccessOperator
- AmazonS3FullAccessHigh privilegeAdmin
- AmazonElasticMapReduceFullAccessHigh privilegeAdmin
Required actions (2)
- s3:DeleteAccessPointPolicy
- s3:PutAccessPointPolicy
Amazon S3 bucket access control
Storage. Reading and changing bucket policies, public access blocks, ACLs and Object Ownership.
View a bucket policy and whether it is public
Return the policy of a bucket and its policy status.
Read-only task. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AmazonS3ReadOnlyAccessReader
- AWSPartnerLedSupportReadOnlyAccessOperator
- SecurityAuditOperator
Required actions (2)
- s3:GetBucketPolicy
- s3:GetBucketPolicyStatus
Set or delete a bucket policy
Apply or delete the policy of a bucket.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSMcpServiceActionsFullAccessOperator
- ConsoleFullAccessFromVercelHigh privilegeOperator
- AmazonS3FullAccessHigh privilegeAdmin
Required actions (2)
- s3:DeleteBucketPolicy
- s3:PutBucketPolicy
View bucket-level block public access
Retrieve the block public access configuration of a bucket.
Read-only task. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AmazonS3ReadOnlyAccessReader
- AWSPartnerLedSupportReadOnlyAccessOperator
- SecurityAuditOperator
Required actions (1)
- s3:GetBucketPublicAccessBlock
Change bucket-level block public access
Create, modify or remove the block public access configuration of a bucket.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSMcpServiceActionsFullAccessOperator
- ConsoleFullAccessFromVercelHigh privilegeOperator
- AmazonS3FullAccessHigh privilegeAdmin
Required actions (1)
- s3:PutBucketPublicAccessBlock
View bucket and object ACLs
Return the access control list of a bucket or of an object.
Read-only task. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AmazonS3ReadOnlyAccessReader
- SecurityAuditOperator
- ReadOnlyAccessOperator
Required actions (2)
- s3:GetBucketAcl
- s3:GetObjectAcl
Change bucket and object ACLs
Set access control list permissions on an existing bucket or object.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSMcpServiceActionsFullAccessOperator
- ConsoleFullAccessFromVercelHigh privilegeOperator
- AmazonS3FullAccessHigh privilegeAdmin
Required actions (2)
- s3:PutBucketAcl
- s3:PutObjectAcl
View Object Ownership setting
Retrieve the Object Ownership setting of a bucket.
Read-only task. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AmazonS3ReadOnlyAccessReader
- AWSPartnerLedSupportReadOnlyAccessOperator
- SecurityAuditOperator
Required actions (1)
- s3:GetBucketOwnershipControls
Change Object Ownership setting
Create, modify or remove the Object Ownership setting of a bucket.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSMcpServiceActionsFullAccessOperator
- ConsoleFullAccessFromVercelHigh privilegeOperator
- AmazonS3FullAccessHigh privilegeAdmin
Required actions (1)
- s3:PutBucketOwnershipControls
Amazon S3 bucket configuration
Storage. Reading and changing bucket settings such as versioning, lifecycle, encryption, logging, CORS and tags.
View bucket configuration
Read the versioning, lifecycle, default encryption, logging, CORS and tagging settings of a bucket.
Read-only task. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AmazonS3ReadOnlyAccessReader
- SecurityAuditOperator
- ReadOnlyAccessOperator
Required actions (6)
- s3:GetBucketCORS
- s3:GetBucketLogging
- s3:GetBucketTagging
- s3:GetBucketVersioning
- s3:GetEncryptionConfiguration
- s3:GetLifecycleConfiguration
Change bucket versioning
Set the versioning state of a bucket.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSMcpServiceActionsFullAccessOperator
- ConsoleFullAccessFromVercelHigh privilegeOperator
- AmazonS3FullAccessHigh privilegeAdmin
Required actions (1)
- s3:PutBucketVersioning
Manage lifecycle rules
Create, replace or delete the S3 Lifecycle configuration of a bucket.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSMcpServiceActionsFullAccessOperator
- ConsoleFullAccessFromVercelHigh privilegeOperator
- AmazonS3FullAccessHigh privilegeAdmin
Required actions (1)
- s3:PutLifecycleConfiguration
Change default bucket encryption
Configure or reset the default encryption of a bucket.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSMcpServiceActionsFullAccessOperator
- AmazonS3FullAccessHigh privilegeAdmin
- AmazonDynamoDBFullAccesswithDataPipelineHigh privilegeAdmin
Required actions (1)
- s3:PutEncryptionConfiguration
Change bucket logging
Set the logging parameters of a bucket.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSMcpServiceActionsFullAccessOperator
- ConsoleFullAccessFromVercelHigh privilegeOperator
- AmazonS3FullAccessHigh privilegeAdmin
Required actions (1)
- s3:PutBucketLogging
Manage bucket CORS configuration
Set or delete the cross-origin resource sharing configuration of a bucket.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSMcpServiceActionsFullAccessOperator
- AmazonSageMakerFullAccessAdmin
- ConsoleFullAccessFromVercelHigh privilegeOperator
Required actions (1)
- s3:PutBucketCORS
Manage bucket tags
Add or delete tags on a bucket.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSMcpServiceActionsFullAccessOperator
- ConsoleFullAccessFromVercelHigh privilegeOperator
- AmazonS3FullAccessHigh privilegeAdmin
Required actions (1)
- s3:PutBucketTagging
Amazon S3 bucket creation and deletion
Storage. Creating, finding and deleting general purpose buckets.
List all buckets in the account
List the buckets owned by the account (ListBuckets).
Read-only task. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
Required actions (1)
- s3:ListAllMyBuckets
Create buckets
Create a new bucket.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
Required actions (1)
- s3:CreateBucket
Delete buckets
Delete a bucket.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSMcpServiceActionsFullAccessOperator
- AmazonS3FullAccessHigh privilegeAdmin
- AmazonElasticMapReduceFullAccessHigh privilegeAdmin
Required actions (1)
- s3:DeleteBucket
Find the Region of a bucket
Return the AWS Region that a bucket resides in.
Read-only task. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AmazonS3ReadOnlyAccessReader
- AWSRefactoringToolkitFullAccessOperator
- AmazonSageMakerCanvasFullAccessOperator
Required actions (1)
- s3:GetBucketLocation
Amazon S3 object access
Storage. Listing, reading, writing and deleting objects in general purpose buckets.
List objects in a bucket
List some or all objects in a bucket (ListObjects, ListObjectsV2).
Read-only task. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSCodePipeline_ReadOnlyAccessReader
- AmazonS3ReadOnlyAccessReader
- AmazonBioDiscoveryFullAccessOperator
Required actions (1)
- s3:ListBucket
Read objects
Get an object, or its metadata, without specifying a version ID.
Read-only task. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
Required actions (1)
- s3:GetObject
Read a specific object version
Get an object when the request specifies a version ID.
Read-only task. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AmazonS3ReadOnlyAccessReader
- ReadOnlyAccessOperator
- AWSMcpServiceActionsFullAccessOperator
Required actions (1)
- s3:GetObjectVersion
List object versions in a bucket
Get metadata about all the versions of objects in a bucket.
Read-only task. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AmazonS3ReadOnlyAccessReader
- AWSPartnerLedSupportReadOnlyAccessOperator
- ReadOnlyAccessOperator
Required actions (1)
- s3:ListBucketVersions
Upload objects
Put an object, including each part of a multipart upload and completing it.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSRefactoringToolkitFullAccessOperator
- AmazonSageMakerCanvasFullAccessOperator
- AWSMcpServiceActionsFullAccessOperator
Required actions (1)
- s3:PutObject
Inspect and abort multipart uploads
List in-progress multipart uploads, list the parts of an upload and abort an upload.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSMcpServiceActionsFullAccessOperator
- ConsoleFullAccessFromVercelHigh privilegeOperator
- AmazonS3FullAccessHigh privilegeAdmin
Required actions (3)
- s3:AbortMultipartUpload
- s3:ListBucketMultipartUploads
- s3:ListMultipartUploadParts
Delete objects
Remove an object without specifying a version ID.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSRefactoringToolkitFullAccessOperator
- AmazonSageMakerCanvasFullAccessOperator
- AWSMcpServiceActionsFullAccessOperator
Required actions (1)
- s3:DeleteObject
Delete a specific object version
Remove an object when the request specifies a version ID.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSMcpServiceActionsFullAccessOperator
- AmazonS3FullAccessHigh privilegeAdmin
- AmazonElasticMapReduceFullAccessHigh privilegeAdmin
Required actions (1)
- s3:DeleteObjectVersion
Read object tags
Get the tag set of an object.
Read-only task. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AmazonS3ReadOnlyAccessReader
- SecurityAuditOperator
- ReadOnlyAccessOperator
Required actions (1)
- s3:GetObjectTagging
Write object tags
Set the tag set on an existing object.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSMcpServiceActionsFullAccessOperator
- ConsoleFullAccessFromVercelHigh privilegeOperator
- AmazonS3FullAccessHigh privilegeAdmin
Required actions (1)
- s3:PutObjectTagging
Restore archived objects
Restore a copy of an archived object.
Needs write access. A reviewed policy fits this task.
Policies that grant every action of this task on their own:
- AWSMcpServiceActionsFullAccessOperator
- ConsoleFullAccessFromVercelHigh privilegeOperator
- AmazonS3FullAccessHigh privilegeAdmin
Required actions (1)
- s3:RestoreObject