AWS::S3::BucketPolicyApplies an Amazon S3 bucket policy to an Amazon S3 bucket. If you are using an identity other than the root user of the AWS-account that owns the bucket, the calling identity must have the PutBucketPolicy permissions on the specified bucket and belong to the bucket owner's account in order to use this operation. If you don't have PutBucketPolicy permissions, Amazon S3 returns a 403 Access Denied error. If you have the correct permissions, but you're not using an identity that bel...
2 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
Bucket | string | RequiredCreate-only |
PolicyDocument | objectstring | Required |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::S3::BucketPolicy
Resources:
MyResource:
Type: AWS::S3::BucketPolicy
Properties:
Bucket: "value"
PolicyDocument: "value"Permissions CloudFormation needs in your IAM role to manage this resource.
s3:GetBucketPolicys3:PutBucketPolicys3:GetBucketPolicys3:GetBucketPolicys3:PutBucketPolicys3:GetBucketPolicys3:DeleteBucketPolicys3:GetBucketPolicys3:ListAllMyBucketsEverything you need to know about S3 on one page. HD quality, print-friendly.
Download Free InfographicBucketThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
Bucket