Skip to content

Commit

Permalink
Add StacksVersion argument, helps along tinnightcap/nubis-stacks#41
Browse files Browse the repository at this point in the history
  • Loading branch information
gozer committed Jul 8, 2015
1 parent cd4aa91 commit d91214a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions nubis/cloudformation/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
"AmiId": {
"Description": "The id of the ami for this region",
"Type": "String"
},
"StacksVersion": {
"Description": "Version of the Nubis Stacks",
"Type": "String",
"Default": "master"
}
},
"Mappings": {
Expand All @@ -47,7 +52,7 @@
"EC2Stack": {
"Type": "AWS::CloudFormation::Stack",
"Properties": {
"TemplateURL": "https://s3.amazonaws.com/nubisproject-stacks/master/ec2.template",
"TemplateURL": { "Fn::Join": [ "/", [ "https://s3.amazonaws.com/nubisproject-stacks", { "Ref": "StacksVersion" }, "ec2.template" ] ] },
"TimeoutInMinutes": "60",
"Parameters": {
"StackName": {
Expand Down Expand Up @@ -89,7 +94,7 @@
"ELBStack": {
"Type": "AWS::CloudFormation::Stack",
"Properties": {
"TemplateURL": "https://s3.amazonaws.com/nubisproject-stacks/master/elb.template",
"TemplateURL": { "Fn::Join": [ "/", [ "https://s3.amazonaws.com/nubisproject-stacks", { "Ref": "StacksVersion" }, "elb.template" ] ] },
"TimeoutInMinutes": "60",
"Parameters": {
"ServiceName": {
Expand Down

0 comments on commit d91214a

Please sign in to comment.