Min permissions required for IAM role to do S3 operations #2585
-
Hi, What are the permissions required for the IAM role to use the following functions?
Usage:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hello @websparks-wy, Thanks for posting the question. Please find my below response.
For For {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:PutObjectAcl"
],
"Resource": "arn:aws:s3:::<bucket-name>/*"
}
]
} Please let me know if you have further questions. Regards, |
Beta Was this translation helpful? Give feedback.
-
Hello @websparks-wy,
If you are on S3 version below 3.3.104.0, you may use DoesS3BucketExistAsync() which still doesn't need IAM permissions to execute for non-owned buckets. I tested again and can confirm that you would need to give Please let me know if this helps. Regards, @bot propose-answer |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Hello @websparks-wy,
DoesS3BucketExistV2Async()
would be available on S3 package AWSSDK.S3 version 3.3.104.0 and above.If you are on S3 version below 3.3.104.0, you may use DoesS3BucketExistAsync() which still doesn't need IAM permissions to execute for non-owned buckets.
I tested again and can confirm that you would need to give
"s3:PutObject"
permissions to be able to useTransferUtility.UploadAsync()
, on owned or cross account buckets.Please let me know if this helps.
Regards,
Chaitanya
@bot propose-answer