2 回答
- 最新
- 投票最多
- 评论最多
0
You could add a condition that compares the Bucket account with the Principle's account. Something like:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1677693648738",
"Action": [
"s3:PutObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::mybucket/*",
"Condition": {
"StringEquals": {
"s3:ResourceAccount": "${aws:PrincipalAccount}"
}
}
}
]
}
0
Hi
I replace ${aws:PrincipalAccount} with my accound ID and it's work like I need !
Thx
Best regards
Benoit
已回答 1 年前
相关内容
- AWS 官方已更新 1 年前
- AWS 官方已更新 3 年前