|
@@ -12,16 +12,28 @@ Resources:
|
|
|
'AWS::CloudFormation::Designer':
|
|
'AWS::CloudFormation::Designer':
|
|
|
id: 486b56bc-dec0-4b7b-8eef-f551f8311495
|
|
id: 486b56bc-dec0-4b7b-8eef-f551f8311495
|
|
|
cachecluster1:
|
|
cachecluster1:
|
|
|
- Type: 'AWS::ElastiCache::CacheCluster'
|
|
|
|
|
|
|
+ Type: 'AWS::ElastiCache::ReplicationGroup'
|
|
|
Properties:
|
|
Properties:
|
|
|
|
|
+ AutomaticFailoverEnabled: true
|
|
|
|
|
+ AutoMinorVersionUpgrade: true
|
|
|
|
|
+ AtRestEncryptionEnabled: true
|
|
|
|
|
+ TransitEncryptionEnabled: true
|
|
|
Engine: redis
|
|
Engine: redis
|
|
|
- ClusterName: cachecluster1
|
|
|
|
|
- NumCacheNodes: '2'
|
|
|
|
|
Port: '6379'
|
|
Port: '6379'
|
|
|
CacheNodeType: cache.t2.micro
|
|
CacheNodeType: cache.t2.micro
|
|
|
- VpcSecurityGroupIds:
|
|
|
|
|
|
|
+ NumNodeGroups: '1'
|
|
|
|
|
+ ReplicasPerNodeGroup: '1'
|
|
|
|
|
+ SecurityGroupIds:
|
|
|
- !Ref dbgroupid
|
|
- !Ref dbgroupid
|
|
|
CacheSubnetGroupName: !Ref cachegroup1
|
|
CacheSubnetGroupName: !Ref cachegroup1
|
|
|
|
|
+ ReplicationGroupDescription: Redis cluster
|
|
|
|
|
+ Tags:
|
|
|
|
|
+ - Key: Name
|
|
|
|
|
+ Value:
|
|
|
|
|
+ 'Fn::Join':
|
|
|
|
|
+ - ':'
|
|
|
|
|
+ - - Cache
|
|
|
|
|
+ - !Ref 'AWS::StackName'
|
|
|
Metadata:
|
|
Metadata:
|
|
|
'AWS::CloudFormation::Designer':
|
|
'AWS::CloudFormation::Designer':
|
|
|
id: 51592334-29be-446e-a1ee-df4f7a6d3c1d
|
|
id: 51592334-29be-446e-a1ee-df4f7a6d3c1d
|