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