我想给予最小特权IAM策略来控制AWS Aurora实例的创建和删除。数据库实例的权限正常,但无法删除数据库集群对象:
User xxxxxxx is not authorized to perform: rds:DeleteDBCluster
以下是我想要的权利:
{
"Sid": "313",
"Effect": "Allow",
"Action": [
"rds:ModifyDBCluster",
"rds:DeleteDBCluster"
],
"Resource": "arn:aws:rds:eu-west-1:123456789101:cluster:*",
"Condition": {
"StringEquals": {
"rds:cluster-tag/author": "qa"
}
}
}
但据我测试,只有这个有效:
{
"Sid": "313",
"Effect": "Allow",
"Action": [
"rds:ModifyDBCluster",
"rds:DeleteDBCluster"
],
"Resource": "*"
}