AWS S3 Bucket Policy vs IAM - What's the Difference?

AWS S3 Bucket Policy vs IAM - What's the Difference?

Be A Better Dev

2 года назад

28,761 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Alexis Lazo
Alexis Lazo - 06.07.2023 23:14

Very Useful, thank you!

Ответить
Vinod Kumar
Vinod Kumar - 06.07.2023 17:50

Thanks for this amazing tutorial. I have a question for you with respect to the cross-account S3 bucket access. If the root user on account B has got access to the S3 bucket sitting on account A then will that make any role of account B access to this bucket (on account A) if the access was given on the role by account B

Ответить
frozen
frozen - 28.05.2023 12:22

I get a principal error when trying to add a bucket policy which gives access to a bucket from a different amazon account and role on that account. The other person does not want to assume a role I created them in my iam they just want access from their account and role added directly on the bucket policy

Ответить
Shrinidhi G
Shrinidhi G - 04.05.2023 11:02

very well explained. thanks

Ответить
Suresh Surendran
Suresh Surendran - 21.04.2023 05:25

Thanks for the tutorial. Really helped me a lot what I wanted to do. 👍

Ответить
Old Universe
Old Universe - 13.04.2023 14:04

Hello. I want to deny GetObject for all users in minio, but it doesn't work. Here is a bucket policy. {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Principal": {
"AWS": [
"*"
]
},
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::my-bucket/*"
]
}
]
} And user has readwrite policy. {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::*"
]
}
]
}.

Ответить
Vld Iv.
Vld Iv. - 15.03.2023 20:26

thank you

Ответить
wr201
wr201 - 12.12.2022 15:52

Very nicely explained. Thanks for the effort you have put in making such videos.

Ответить
Likely lad
Likely lad - 01.12.2022 23:37

Super helpful resource thanks!! 😊

Ответить
Michael Vaynagiy
Michael Vaynagiy - 29.09.2022 15:36

Thank you! Very clear explanation.

Ответить
Daniel Williams
Daniel Williams - 25.07.2022 06:17

Oh Canada! Is there really a “zed” in “reZources”? 😊

Ответить
RAJARAJAN SUNDARAJAN
RAJARAJAN SUNDARAJAN - 15.06.2022 08:08

Thanks for this video.

Ответить
Raj Thakkar
Raj Thakkar - 03.06.2022 16:22

Very clearly explained. ***

Ответить
Lina Hovanessian
Lina Hovanessian - 29.04.2022 10:22

Cool! nice tutorial thanks !

Ответить
Abhay Thakur
Abhay Thakur - 28.04.2022 20:05

Awesome as always

Ответить
Rene Jacques
Rene Jacques - 28.04.2022 18:26

I have a question, but first, very good. I was never told before that the principal field goes just with S3 policies.
On to the question, if we're allowed to act on a bucket, can't we operate on its objects as well? In your example you gave access to both bucket and objects.

Ответить
ro pro
ro pro - 28.04.2022 18:03

Be A Better Dev: Daniel, this is so timely for me! On my current project, I'm literally in the middle of creating a lambda to trigger off of s3:CreateObject events which then invokes a step function! Love your explanations of AWS concepts, they're super clear and concise. ❤ AWS's IAM docs are hopeless. 😩

Ответить
raghu boyapati
raghu boyapati - 28.04.2022 17:38

If i give permission to s3 bucket in bucket policy to a user but no in IAM policy, can the user access the s3 bucket?

Ответить