Переглянути джерело

update CloudFormation/Redis.yaml.

xdc 5 роки тому
батько
коміт
5de3d1208c
1 змінених файлів з 16 додано та 4 видалено
  1. 16 4
      CloudFormation/Redis.yaml

+ 16 - 4
CloudFormation/Redis.yaml

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