|
|
@@ -0,0 +1,34 @@
|
|
|
+AWSTemplateFormatVersion: 2010-09-09
|
|
|
+Resources:
|
|
|
+ cachegroupa:
|
|
|
+ Type: 'AWS::ElastiCache::SubnetGroup'
|
|
|
+ Properties:
|
|
|
+ CacheSubnetGroupName: cachegroupa
|
|
|
+ Description: cachegroupa
|
|
|
+ SubnetIds:
|
|
|
+ - !Ref dbnet1id
|
|
|
+ - !Ref dbnet2id
|
|
|
+ Metadata:
|
|
|
+ 'AWS::CloudFormation::Designer':
|
|
|
+ id: 486b56bc-dec0-4b7b-8eef-f551f8311495
|
|
|
+ cachecluster:
|
|
|
+ Type: 'AWS::ElastiCache::CacheCluster'
|
|
|
+ Properties:
|
|
|
+ Engine: memcached
|
|
|
+ ClusterName: cachecluster
|
|
|
+ NumCacheNodes: '2'
|
|
|
+ Port: '11211'
|
|
|
+ CacheNodeType: cache.t2.micro
|
|
|
+ VpcSecurityGroupIds:
|
|
|
+ - !Ref dbsgid
|
|
|
+ CacheSubnetGroupName: !Ref cachegroupa
|
|
|
+ Metadata:
|
|
|
+ 'AWS::CloudFormation::Designer':
|
|
|
+ id: 51592334-29be-446e-a1ee-df4f7a6d3c1d
|
|
|
+Parameters:
|
|
|
+ dbsgid:
|
|
|
+ Type: String
|
|
|
+ dbnet1id:
|
|
|
+ Type: String
|
|
|
+ dbnet2id:
|
|
|
+ Type: String
|