【发布时间】:2017-05-11 10:03:03
【问题描述】:
我想在 EC2 实例上创建一个 Web 界面来“关闭”和“启动”一个 RDS Aurora 集群,因为它每月只使用 2 天。
为此,我有:
-
用
创建了一个角色“行动”:[ "rds:CreateDBClusterSnapshot", "rds:CreateDBCluster", “rds:删除DBCluster” ], “资源”:[ “arn:aws:rds:us-west-2:123456789:cluster:momtransgrinder-cluster” ]
将角色与实例关联
当我运行以下命令时:
aws rds create-db-cluster-snapshot --db-cluster-snapshot-identifier testsnap2 --db-cluster-identifier momtransgrinder-cluster
我收到一个错误
An error occurred (AccessDenied) when calling the CreateDBClusterSnapshot operation: User: arn:aws:sts::123456789:assumed-role/root/i-47717451 is not authorized to perform: rds:CreateDBClusterSnapshot on resource: arn:aws:rds:us-west-2:123456789:cluster-snapshot:testsnap2
但是,当我将角色更改为拥有 rds:* 时,它可以工作。创建集群快照必须有一些隐含的其他权限吗?但是是哪一个?
【问题讨论】:
标签: amazon-web-services command-line-interface amazon