【问题标题】:Specifying ARN for a ElastiCache Cluster in Multiple region为多个区域中的 ElastiCache 集群指定 ARN
【发布时间】: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


    【解决方案1】:

    知道了,我对使用可用区指定区域感到困惑。无论集群可用区如何,我都必须指定 region-id。

    【讨论】:

      猜你喜欢
      • 2020-03-30
      • 2019-12-04
      • 2019-05-04
      • 2018-01-17
      • 2015-05-06
      • 2020-02-09
      • 2020-05-12
      • 2023-04-04
      • 2019-07-13
      相关资源
      最近更新 更多