Skip to content

Commit

Permalink
set SubnetsPrivate app Parameter for new releases
Browse files Browse the repository at this point in the history
  • Loading branch information
nzoschke committed Feb 19, 2016
1 parent d8cf0db commit d98448f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions api/models/release.go
Expand Up @@ -206,6 +206,15 @@ func (r *Release) Promote() error {
app.Parameters["Key"] = os.Getenv("ENCRYPTION_KEY")
}

// SubnetsPrivate is a List<AWS::EC2::Subnet::Id> and can not be empty
// So reuse SUBNETS if SUBNETS_PRIVATE is not set
subnetsPrivate := os.Getenv("SUBNETS_PRIVATE")
if subnetsPrivate == "" {
subnetsPrivate = os.Getenv("SUBNETS")
}

app.Parameters["SubnetsPrivate"] = subnetsPrivate

params := []*cloudformation.Parameter{}

for key, value := range app.Parameters {
Expand Down

0 comments on commit d98448f

Please sign in to comment.