Redis.yaml 899 B

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