|
|
@@ -0,0 +1,34 @@
|
|
|
+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::CacheCluster'
|
|
|
+ Properties:
|
|
|
+ Engine: redis
|
|
|
+ ClusterName: cachecluster1
|
|
|
+ NumCacheNodes: '1'
|
|
|
+ Port: '6379'
|
|
|
+ CacheNodeType: cache.t2.micro
|
|
|
+ VpcSecurityGroupIds:
|
|
|
+ - !Ref dbgroupid
|
|
|
+ CacheSubnetGroupName: !Ref cachegroup1
|
|
|
+ Metadata:
|
|
|
+ 'AWS::CloudFormation::Designer':
|
|
|
+ id: 51592334-29be-446e-a1ee-df4f7a6d3c1d
|
|
|
+Parameters:
|
|
|
+ dbgroupid:
|
|
|
+ Type: String
|
|
|
+ dbnet1id:
|
|
|
+ Type: String
|
|
|
+ dbnet2id:
|
|
|
+ Type: String
|