Commit bdc7af57 by Sef Kloninger

cleanups to memcache cluster manual commands

parent 81fa0116
...@@ -3131,64 +3131,40 @@ ...@@ -3131,64 +3131,40 @@
} }
}, },
"ElasticCacheCreateSubnetGroupCommand":{ "ElasticCacheCreateSubnetGroupCommand":{
"Description":"Commands to be run to create the elatic cache. Creation isn't fully supported in CF today.", "Description":"MANUAL COMMAND #1: create subnet group. (these commands have to be run by hand because they aren't supported by CloudFormation yet.",
"Value":{ "Value":{
"Fn::Join":[ "Fn::Join":[
"", "",
[ [
"elasticache-create-cache-subnet-group", "elasticache-create-cache-subnet-group ", { "Ref":"EdxVPC" }, "-ElasticCacheSubnetGroup ",
" ", "--description 'VPC ElasticCache Subnet Group' ",
{ "--subnet-ID-list ", { "Ref":"Cache01" }, ",", { "Ref":"Cache02" }
"Ref":"EdxVPC"
},
"-ElasticCacheSubnetGroup --description 'VPC ElasticCache Subnet Group'",
" --subnet-ID-list",
" ",
{
"Ref":"Cache01"
},
",",
{
"Ref":"Cache02"
}
] ]
] ]
} }
}, },
"ElasticCacheCreateCacheClusterCommand":{ "ElasticCacheCreateCacheClusterCommand":{
"Description":"Foo", "Description":"MANUAL COMMAND #2: Create cache cluster.",
"Value":{ "Value":{
"Fn::Join":[ "Fn::Join":[
"", "",
[ [
"elasticache-create-cache-cluster", "elasticache-create-cache-cluster ", { "Ref":"EdxVPC" }, "-Cache ",
" ", "--num-cache-nodes ", { "Ref":"NumberOfCacheNodes" }, " ",
{ "--cache-node-type ", { "Ref":"CacheNodeType" }, " ",
"Ref":"EdxVPC" "--engine memcached ",
}, "--engine-version 1.4.5 ",
"-Cache --num-cache-nodes ", "--port 12345 ",
{ "--preferred-availability-zone ",
"Ref":"NumberOfCacheNodes" { "Fn::FindInMap":[
},
" --cache-node-type ",
{
"Ref":"CacheNodeType"
},
" --engine memcached --engine-version 1.4.5 --port 12345 --preferred-availability-zone ",
{
"Fn::FindInMap":[
"MapRegionsToAvailZones", "MapRegionsToAvailZones",
{ "Ref":"AWS::Region" }, { "Ref":"AWS::Region" },
"AZone0" "AZone0"
] ]
}, }, " ",
" --cache-parameter-group-name default.memcached1.4 --auto-minor-version-upgrade true", "--cache-parameter-group-name default.memcached1.4 "
" --cache-subnet-group-name ElasticCacheSubnetGroup", "--auto-minor-version-upgrade true ",
" ", "--cache-subnet-group-name ", { "Ref":"EdxVPC" },"-ElasticCacheSubnetGroup"
{
"Ref":"EdxVPC"
},
"-ElasticCacheSubnetGroup"
] ]
] ]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment