0
スナップショットを使用してクラスタを復元しようとすると、問題が発生します。私はどんな指針にも感謝します。Amazon Redshift:Acces Denied RestoreClusterSnapshotRequest
使用してコードがある:それははRestoreClusterSnapshotRequest操作を呼び出す場合
var con = new AmazonRedshiftClient(acess_key_id, secret_acess_key, Amazon.RegionEndpoint.USWest2);
var restore = new Amazon.Redshift.Model.RestoreFromClusterSnapshotRequest()
{
ClusterIdentifier = clusterIdentifier,
SnapshotIdentifier = snapshotIdentifier,
AvailabilityZone = "us-west-2a",
};
var response = con.RestoreFromClusterSnapshot(restore);
Console.WriteLine("Cluster Status : {0}", response.Cluster.ClusterStatus);
は、私は例外を持っている: 『アクセスが拒否されましたあなたのIAM権限がこの操作を許可していることを確認してください。』
アイデンティティベースのポリシーこの ポリシーのようなアマゾン赤方偏移のために(IAMポリシー)の使用..
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"redshift:CopyClusterSnapshot",
"redshift:RestoreFromClusterSnapshot",
"redshift:AuthorizeSnapshotAccess",
"redshift:RevokeSnapshotAccess"
],
"Resource": [
"arn:aws:redshift:us-west-2:{AccoundId}:*/backup-20160208-dbrd",
"arn:aws:redshift:us-west-2: {AccoundId}:cluster:*"
]
},
{
"Effect": "Allow",
"Action": [
"redshift:DescribeClusterSnapshots"
],
"Resource": [
"*"
]
}
]
}
いずれかがこの問題を克服するために私を助けてもらえを、私なら、私を修正してくださいプロセスの中で何らかの誤りが起きた。
ありがとうございました