mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-30 13:34:02 +03:00
52c0e071da
Includes: * First pass at Elastic Beanstalk integration * Gets code and elasticache working * Very rudimentary documentation * Includes post hook cleanup
47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
#This sample requires you to create a separate configuration file that defines the custom
|
|
# option settings for CacheCluster properties.
|
|
|
|
Resources:
|
|
MyCacheSecurityGroup:
|
|
Type: "AWS::EC2::SecurityGroup"
|
|
Properties:
|
|
GroupDescription: "Lock cache down to webserver access only"
|
|
SecurityGroupIngress :
|
|
- IpProtocol : "tcp"
|
|
FromPort :
|
|
Fn::GetOptionSetting:
|
|
OptionName : "CachePort"
|
|
DefaultValue: "6379"
|
|
ToPort :
|
|
Fn::GetOptionSetting:
|
|
OptionName : "CachePort"
|
|
DefaultValue: "6379"
|
|
SourceSecurityGroupName:
|
|
Ref: "AWSEBSecurityGroup"
|
|
MyElastiCache:
|
|
Type: "AWS::ElastiCache::CacheCluster"
|
|
Properties:
|
|
CacheNodeType:
|
|
Fn::GetOptionSetting:
|
|
OptionName : "CacheNodeType"
|
|
DefaultValue : "cache.t1.micro"
|
|
NumCacheNodes:
|
|
Fn::GetOptionSetting:
|
|
OptionName : "NumCacheNodes"
|
|
DefaultValue : "1"
|
|
Engine:
|
|
Fn::GetOptionSetting:
|
|
OptionName : "Engine"
|
|
DefaultValue : "redis"
|
|
VpcSecurityGroupIds:
|
|
-
|
|
Fn::GetAtt:
|
|
- MyCacheSecurityGroup
|
|
- GroupId
|
|
|
|
Outputs:
|
|
ElastiCache:
|
|
Description : "ID of ElastiCache Cache Cluster with Redis Engine"
|
|
Value :
|
|
Ref : "MyElastiCache"
|