Forráskód Böngészése

add CloudFormation/multi-Redis.yaml.

xdc 5 éve
szülő
commit
10b6a4e01d
1 módosított fájl, 66 hozzáadás és 0 törlés
  1. 66 0
      CloudFormation/multi-Redis.yaml

+ 66 - 0
CloudFormation/multi-Redis.yaml

@@ -0,0 +1,66 @@
+AWSTemplateFormatVersion: 2010-09-09
+Resources:
+  cachegroup1:
+    Type: 'AWS::ElastiCache::SubnetGroup'
+    Properties:
+      CacheSubnetGroupName: cachegroup1
+      Description: cachegroup1
+      SubnetIds:
+        - !Ref dbnet1id
+        - !Ref dbnet2id
+    Metadata:
+      'AWS::CloudFormation::Designer':
+        id: 486b56bc-dec0-4b7b-8eef-f551f8311495
+  cachecluster1:
+    Type: 'AWS::ElastiCache::ReplicationGroup'
+    Properties:
+      AutomaticFailoverEnabled: true
+      AutoMinorVersionUpgrade: true
+      Engine: redis
+      NumCacheClusters: '2'
+      Port: '6379'
+      CacheNodeType: cache.t2.micro
+      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
+Parameters:
+  dbgroupid:
+    Type: String
+  dbnet1id:
+    Type: String
+  dbnet2id:
+    Type: String
+Metadata:
+  'AWS::CloudFormation::Designer':
+    486b56bc-dec0-4b7b-8eef-f551f8311495:
+      size:
+        width: 240
+        height: 240
+      position:
+        x: 60
+        'y': 90
+      z: 1
+      embeds:
+        - 51592334-29be-446e-a1ee-df4f7a6d3c1d
+    51592334-29be-446e-a1ee-df4f7a6d3c1d:
+      size:
+        width: 60
+        height: 60
+      position:
+        x: 90
+        'y': 150
+      z: 2
+      parent: 486b56bc-dec0-4b7b-8eef-f551f8311495
+      embeds: []
+      iscontainedinside:
+        - 486b56bc-dec0-4b7b-8eef-f551f8311495
+        - 486b56bc-dec0-4b7b-8eef-f551f8311495
+        - 486b56bc-dec0-4b7b-8eef-f551f8311495