【发布时间】:2018-03-21 09:41:02
【问题描述】:
在我的 cloudformation 模板中,我正在为 ElastiCache 集群创建一个策略,该策略设置为在多个区域中可用,我应该如何为 ElasticCache 集群指定 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" }]
}
}
【问题讨论】:
标签: amazon-web-services amazon-cloudformation amazon-elasticache