【问题标题】:CloudFormation - ReplicationGroup - Specify the nameCloudFormation - ReplicationGroup - 指定名称
【发布时间】:2020-11-03 15:19:20
【问题描述】:

我正在创建一个 CloudFormation 模板以在 ElastiCache 集群中创建 Redis,一切正常。 但是我无法修改集群的名称。

这是我的代码:

Resources:
Redis:
    Type: 'AWS::ElastiCache::ReplicationGroup'
    Properties:

        ReplicationGroupDescription: RedisCluster
        NumCacheClusters: '2'
        Engine: redis
        MultiAZEnabled: yes
        CacheNodeType: cache.t2.micro
        AutomaticFailoverEnabled: 'true'
        CacheSubnetGroupName: !Ref RedisSubnetGroup
        EngineVersion: 5.0.6
        PreferredMaintenanceWindow: mon:03:00-mon:04:00
        Tags: 
            - Key: Cluster Name
              Value: "Redis"
            - Key: Name
              Value: "Redis"
        SecurityGroupIds: 
            - !Ref RedisSecurityGroup

在这种情况下,标签似乎不起作用。

指定集群名称的正确方法是什么?

【问题讨论】:

标签: amazon-web-services redis tags amazon-cloudformation amazon-elasticache


【解决方案1】:

名称是使用ReplicationGroupId设置的:

复制组标识符。该参数存储为小写字符串。

【讨论】:

  • 你的回答是对的,谢谢
猜你喜欢
  • 1970-01-01
  • 2022-06-21
  • 2015-12-03
  • 2017-11-25
  • 1970-01-01
  • 1970-01-01
  • 2019-05-19
  • 2019-09-30
  • 1970-01-01
相关资源
最近更新 更多