Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can a AWS S3 bucket have more than one policy attached to it?

I have an S3 bucket with policy1 attached to it and i attached another policy2 to same S3 bucket via cloudformation but its not showing up in S3 bucket properties => permissions => edit bucket policy.

can a AWS S3 bucket have more than one policy attached to it?

like image 431
Aty Avatar asked Feb 09 '17 16:02

Aty


People also ask

What is the size limit of S3 bucket policies?

Bucket policies are limited to 20 KB in size. You can use the AWS Policy Generator to create a bucket policy for your Amazon S3 bucket.

Can you attach IAM policy to S3 bucket?

Attach the a policy to this IAM role to provide access to your S3 bucket. You can either grant your IAM role access to all of your S3 buckets or grant access to selected S3 buckets configured by custom policies: To grant your IAM role access to all of your S3 buckets, select the default AmazonS3FullAccess policy.

What are S3 bucket policies?

What Is an S3 Bucket Policy? An S3 bucket policy is an object that allows you to manage access to specific Amazon S3 storage resources. You can specify permissions for each resource to allow or deny actions requested by a principal (a user or role).

Can a S3 bucket store multiple versions of the same file?

You can use S3 Versioning to keep multiple versions of an object in one bucket so that you can restore objects that are accidentally deleted or overwritten.


1 Answers

No, a AWS::S3::BucketPolicy can only have one PolicyDocument. However, a PolicyDocument can have multiple Statements.

Source: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html#cfn-s3-bucketpolicy-policydocument

like image 110
spg Avatar answered Nov 15 '22 07:11

spg