amazon-web-services - CloudFormation - 复制组 - 指定名称

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

我正在创建一个 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

看起来标签在这种情况下不起作用。

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

最佳答案

名称使用 ReplicationGroupId 设置:

The replication group identifier. This parameter is stored as a lowercase string.

关于amazon-web-services - CloudFormation - 复制组 - 指定名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62892618/

相关文章:

ruby-on-rails - 私有(private)方法中的 HGET 不返回哈希

ruby-on-rails - Heroku + Rails4.2 : Cloudfront setup

java - 如何将驻留在 Amazon ec2 实例中的 Tomcat 7 server.xml 文档库指向 Amazon S3 存储桶中的文件夹

amazon-web-services - 为什么在此AWS Lambda部署包中找不到处理程序脚本?

node.js - 如何提高redis sub的性能?

c# - UnityException : Tag: is not defined

amazon-web-services - CloudWatch 代理每个实例流

docker - 来自守护进程 : rpc error: code = 2 desc = name conflicts with an existing object 的错误响应

svn - 配置 TeamCity 以从 SVN 主干、分支和/或标签构建

php - (Wordpress) 如何获取带有 html 标签的帖子的完整内容 - 未剥离