0
在我的cloudformation模板中,我爲ElastiCache羣集創建了一個策略,該羣集設置爲在多個區域中具有可用性,應該如何爲ElasticCache羣集指定ARN。指定多區域ElastiCache羣集的ARN
從AWS文檔
http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-elasticache
我跳過下面的集羣區域的名稱,就是這是做到這一點的方式。
"ElastiCachePolicy" :{
"Type" : "AWS::IAM::Policy",
"Properties" : {
"PolicyName" : "ElastiCache",
"PolicyDocument" : {
"Version": "2012-10-17",
"Statement": [
{
"Action": "elasticache:*",
"Effect": "Allow",
"Resource": "arn:aws:elasticache::account-id:cluster:cluster-name"
}]
},
"Roles": [ { "Ref": "SomeRole" }]
}
}