Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
42325241
Commit
42325241
authored
Sep 30, 2013
by
Ker Ruben Ramos
Committed by
Feanil Patel
Oct 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VPC DNS and Elasticache support
I hope this helps cleaning up a bit.
parent
1452ac2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
54 deletions
+30
-54
cloudformation_templates/edx-reference-architecture.json
+30
-54
No files found.
cloudformation_templates/edx-reference-architecture.json
View file @
42325241
...
...
@@ -399,6 +399,8 @@
"Resources"
:{
"EdxVPC"
:{
"Type"
:
"AWS::EC2::VPC"
,
"EnableDnsSupport"
:
"true"
,
"EnableDnsHostnames"
:
"true"
,
"Properties"
:{
"CidrBlock"
:
"10.0.0.0/16"
,
"InstanceTenancy"
:
"default"
...
...
@@ -5187,6 +5189,33 @@
},
"Timeout"
:
"2400"
}
},
"CacheSubnetGroup"
:
{
"Type"
:
"AWS::ElastiCache::SubnetGroup"
,
"Properties"
:
{
"Description"
:
"Cache Subnet Group"
,
"SubnetIds"
:
[
{
"Ref"
:
"PublicSubnet01"
},
{
"Ref"
:
"PublicSubnet02"
}
]
}
},
"CacheParameters"
:
{
"Type"
:
"AWS::ElastiCache::ParameterGroup"
,
"Properties"
:
{
"CacheParameterGroupFamily"
:
"memcached1.4"
,
"Description"
:
"Parameter group"
,
"Properties"
:
{
"cas_disabled"
:
"1"
}
}
},
"CacheCluster"
:
{
"Type"
:
"AWS::ElastiCache::CacheCluster"
,
"Properties"
:
{
"CacheSubnetGroupName"
:
{
"Ref"
:
"CacheSubnetGroup"
},
"CacheNodeType"
:
{
"Ref"
:
"CacheNodeType"
},
"VpcSecurityGroupIds"
:
[
{
"Ref"
:
"CacheSecurityGroup"
}
],
"Engine"
:
"memcached"
,
"NumCacheNodes"
:
{
"Ref"
:
"NumberOfCacheNodes"
}
}
}
},
"Outputs"
:{
...
...
@@ -5241,59 +5270,6 @@
]
]
}
},
"ElasticCacheCreateSubnetGroupCommand"
:{
"Description"
:
"MANUAL COMMAND #1: create subnet group. (these commands have to be run by hand because they aren't supported by CloudFormation yet."
,
"Value"
:{
"Fn::Join"
:[
""
,
[
"elasticache-create-cache-subnet-group "
,
{
"Ref"
:
"EdxVPC"
},
"-ElasticCacheSubnetGroup "
,
"--description 'VPC ElasticCache Subnet Group' "
,
"--subnet-ID-list "
,
{
"Ref"
:
"Cache01"
},
","
,
{
"Ref"
:
"Cache02"
}
]
]
}
},
"ElasticCacheCreateCacheClusterCommand"
:{
"Description"
:
"MANUAL COMMAND #2: Create cache cluster."
,
"Value"
:{
"Fn::Join"
:[
""
,
[
"elasticache-create-cache-cluster "
,
{
"Ref"
:
"EdxVPC"
},
"-Cache "
,
"--num-cache-nodes "
,
{
"Ref"
:
"NumberOfCacheNodes"
},
" "
,
"--cache-node-type "
,
{
"Ref"
:
"CacheNodeType"
},
" "
,
"--engine memcached "
,
"--engine-version 1.4.5 "
,
"--port "
,
{
"Ref"
:
"CacheNodePort"
},
" "
,
"--preferred-availability-zone "
,
{
"Fn::FindInMap"
:[
"MapRegionsToAvailZones"
,
{
"Ref"
:
"AWS::Region"
},
"AZone0"
]
},
" "
,
"--cache-parameter-group-name default.memcached1.4 "
,
"--auto-minor-version-upgrade true "
,
"--cache-subnet-group-name "
,
{
"Ref"
:
"EdxVPC"
},
"-ElasticCacheSubnetGroup "
,
"--security-group-ids "
,
{
"Ref"
:
"CacheSecurityGroup"
}
]
]
}
},
"EnableDNSHostnamesForVPCCommand"
:{
"Description"
:
"MANUAL COMMAND #3: Change VPC setting to enable automatic DNS hostname resolution from within the VPC. Setting not supported in Cloudformation yet."
,
"Value"
:{
"Fn::Join"
:[
""
,
[
"ec2-modify-vpc-attribute "
,
"-c "
,
{
"Ref"
:
"EdxVPC"
},
" "
,
"-d true"
]
]
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment