1 回答
- 最新
- 投票最多
- 评论最多
0
For anyone else who wants to achieve this. I was missing a single permission "kms:GenerateDataKey". Full policy below.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"kms:Encrypt",
"kms:GenerateDataKey",
"s3:PutObject",
"s3:ListBucket",
"s3:PutObjectAcl"
],
"Resource": [
"arn:aws:s3:::<BucketName>",
"arn:aws:s3:::<BucketName>/*",
"arn:aws:kms:<Region>:<AccountID>:key/<KeyID>"
]
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": "s3:HeadBucket",
"Resource": "*"
}
]
}
已回答 5 年前
相关内容
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前