Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services AWS cloudformation:创建AWS::ElastiCache::ReplicationGroup资源时如何设置群集名称_Amazon Web Services_Amazon Cloudformation - Fatal编程技术网

Amazon web services AWS cloudformation:创建AWS::ElastiCache::ReplicationGroup资源时如何设置群集名称

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:

我在模板中有一个类型为AWS::ElastiCache::ReplicationGroup的资源。创建堆栈时,它在创建集群时分配生成的名称。正在使用Redis引擎。在AWS::ElastiCache::CacheCluster的情况下,有一个名为ClusterName的属性用于相同的目的。这里有相应的属性吗?

对于我来说,设置ReplicationGroupId属性是有效的。我使用了一个名为“ClusterName”的输入参数

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