Memcached.yaml 920 B

1234567891011121314151617181920212223242526272829303132333435
  1. AWSTemplateFormatVersion: 2010-09-09
  2. Resources:
  3. cachegroupa:
  4. Type: 'AWS::ElastiCache::SubnetGroup'
  5. Properties:
  6. CacheSubnetGroupName: cachegroupa
  7. Description: cachegroupa
  8. SubnetIds:
  9. - !Ref dbnet1id
  10. - !Ref dbnet2id
  11. Metadata:
  12. 'AWS::CloudFormation::Designer':
  13. id: 486b56bc-dec0-4b7b-8eef-f551f8311495
  14. cachecluster:
  15. Type: 'AWS::ElastiCache::CacheCluster'
  16. Properties:
  17. AZMode: cross-az
  18. Engine: memcached
  19. ClusterName: cachecluster
  20. NumCacheNodes: '2'
  21. Port: '11211'
  22. CacheNodeType: cache.t2.micro
  23. VpcSecurityGroupIds:
  24. - !Ref dbsgid
  25. CacheSubnetGroupName: !Ref cachegroupa
  26. Metadata:
  27. 'AWS::CloudFormation::Designer':
  28. id: 51592334-29be-446e-a1ee-df4f7a6d3c1d
  29. Parameters:
  30. dbsgid:
  31. Type: String
  32. dbnet1id:
  33. Type: String
  34. dbnet2id:
  35. Type: String