Amazon web services AWS cloudformation:创建AWS::ElastiCache::ReplicationGroup资源时如何设置群集名称
我在模板中有一个类型为AWS::ElastiCache::ReplicationGroup的资源。创建堆栈时,它在创建集群时分配生成的名称。正在使用Redis引擎。在AWS::ElastiCache::CacheCluster的情况下,有一个名为ClusterName的属性用于相同的目的。这里有相应的属性吗?对于我来说,设置ReplicationGroupId属性是有效的。我使用了一个名为“ClusterName”的输入参数Amazon web services AWS cloudformation:创建AWS::ElastiCache::ReplicationGroup资源时如何设置群集名称,amazon-web-services,amazon-cloudformation,Amazon Web Services,Amazon Cloudformation,我在模板中有一个类型为AWS::ElastiCache::ReplicationGroup的资源。创建堆栈时,它在创建集群时分配生成的名称。正在使用Redis引擎。在AWS::ElastiCache::CacheCluster的情况下,有一个名为ClusterName的属性用于相同的目的。这里有相应的属性吗?对于我来说,设置ReplicationGroupId属性是有效的。我使用了一个名为“ClusterName”的输入参数 Resources: RedisReplicationGroup:
Resources:
RedisReplicationGroup:
DependsOn: SecurityGroup
Type: AWS::ElastiCache::ReplicationGroup
Properties:
AtRestEncryptionEnabled: !Ref AtRestEncryptionEnabled
AuthToken: !Ref AuthToken
AutomaticFailoverEnabled: !Ref AutomaticFailoverEnabled
CacheNodeType: !Ref CacheNodeType
CacheParameterGroupName: !Ref CacheParameterGroupName
CacheSubnetGroupName: !Ref CacheSubnetGroupName
Engine: redis
NumNodeGroups: !Ref NumNodeGroups
ReplicationGroupId: !Ref ClusterName
ReplicasPerNodeGroup: !Ref ReplicasPerNodeGroup
ReplicationGroupDescription: "Redis Cluster"
SecurityGroupIds:
- !Ref SecurityGroup
Tags:
-
Key: "Environment"
Value: !Ref EnvironmentTag
-
Key: "Name"
Value: !Ref ClusterName
-
Key: "CreatedBy"
Value: !Ref CreatedByTag
-
Key: "Project"
Value: !Ref ProjectTag
TransitEncryptionEnabled: !Ref TransitEncryptionEnabled