当我运行 Kinesis 示例时,出现此错误:
Caught Exception: User (arn:aws:iam::xxxxxxxxxxxx:user/user_name) does not have permission to perform (sdb:ListDomains) on resource (arn:aws:sdb:us-west-2:xxxxxxxxxxxx:domain/). Contact account owner.
我需要为用户附加的策略名称是什么,以便授予执行 (sdb:ListDomains) 的访问权限?
只有 6 个 AWS 托管策略明确提到了sdb
:
- AmazonElasticMapReduceReadOnlyAccess
- AmazonElasticMapReduceRole
- AmazonElasticMapReduceforEC2Role
- ReadOnlyAccess
- AmazonElasticMapReduceFullAccess
- SecurityAudit
ReadOnlyAccess
sdb:List*
附加的,因此如果您正在运行示例应用程序,这似乎是最明智的。
否则,请创建自己的策略:
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"sdb:ListDomains"
],
"Effect": "Allow",
"Resource": "*"
}
]
}