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公式更新しました 6ヶ月前