Multipart uploads with a custom IAM policy
-
I’m using a custom IAM policy to restrict access to a specific folder/prefix in AWS. The policy is below, and works – but only if multipart upload option is unchecked. Does anyone know how to adjust this policy to accept multipart upload?
Thanks!
{ "Version": "2012-10-17", "Statement": [ { "Sid": "AllowUserToSeeBucketListInTheConsole", "Action": [ "s3:GetBucketLocation", "s3:ListAllMyBuckets" ], "Effect": "Allow", "Resource": [ "arn:aws:s3:::*" ] }, { "Sid": "AllowRootAndHomeListingOfCompanyBucket", "Action": [ "s3:ListBucket" ], "Effect": "Allow", "Resource": [ "arn:aws:s3:::mybucket" ], "Condition": { "StringEquals": { "s3:prefix": [ "", "mysharedfolder/" ], "s3:delimiter": [ "/" ] } } }, { "Sid": "AllowListingOfUserFolder", "Action": [ "s3:ListBucket" ], "Effect": "Allow", "Resource": [ "arn:aws:s3:::mybucket" ], "Condition": { "StringLike": { "s3:prefix": [ "mysharedfolder/myfolder/*" ] } } }, { "Sid": "AllowAllS3ActionsInUserFolder", "Effect": "Allow", "Action": [ "s3:*" ], "Resource": [ "arn:aws:s3:::mybucket/mysharedfolder/myfolder/*" ] } ] }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Multipart uploads with a custom IAM policy’ is closed to new replies.