Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # IAM policy recipes
- - [Public Read Write access](#public-read-write)
- - [Public Read Only access](#public-read-only)
- - [Public Write Only access](#public-write-only)
- ## Public Read Write
- **Type:** bucket
- ```json
- {
- "Version": "2012-10-17",
- "Statement": [
- {
- "Action": [
- "s3:GetBucketLocation",
- "s3:ListBucket",
- "s3:ListBucketMultipartUploads"
- ],
- "Effect": "Allow",
- "Resource": [
- "arn:aws:s3:::YOUR-BUCKET"
- ],
- "Sid": ""
- },
- {
- "Action": [
- "s3:AbortMultipartUpload",
- "s3:DeleteObject",
- "s3:GetObject",
- "s3:ListMultipartUploadParts",
- "s3:PutObject"
- ],
- "Effect": "Allow",
- "Resource": [
- "arn:aws:s3:::YOUR-BUCKET/*"
- ],
- "Sid": ""
- }
- ]
- }
- ```
- ## Public Read Only
- **Type:** bucket
- ```json
- {
- "Version": "2012-10-17",
- "Statement": [
- {
- "Action": [
- "s3:GetBucketLocation",
- "s3:ListBucket"
- ],
- "Effect": "Allow",
- "Resource": [
- "arn:aws:s3:::YOUR-BUCKET"
- ],
- "Sid": ""
- },
- {
- "Action": [
- "s3:GetObject"
- ],
- "Effect": "Allow",
- "Resource": [
- "arn:aws:s3:::YOUR-BUCKET/*"
- ],
- "Sid": ""
- }
- ]
- }
- ```
- ## Public Write Only
- **Type:** bucket
- ```json
- {
- "Version": "2012-10-17",
- "Statement": [
- {
- "Action": [
- "s3:GetBucketLocation",
- "s3:ListBucketMultipartUploads"
- ],
- "Effect": "Allow",
- "Resource": [
- "arn:aws:s3:::YOUR-BUCKET"
- ],
- "Sid": ""
- },
- {
- "Action": [
- "s3:AbortMultipartUpload",
- "s3:DeleteObject",
- "s3:ListMultipartUploadParts",
- "s3:PutObject"
- ],
- "Effect": "Allow",
- "Resource": [
- "arn:aws:s3:::YOUR-BUCKET/*"
- ],
- "Sid": ""
- }
- ]
- }
- ```
Add Comment
Please, Sign In to add comment