Skip to content
Permalink
Browse files

add vpc stage override support. Closes #689

  • Loading branch information...
tj committed Jul 22, 2018
1 parent 117723a commit f1bee266160613438a88a2d85b17aada6ef0e236
Showing with 5 additions and 1 deletion.
  1. +5 −1 config/lambda.go
@@ -46,7 +46,7 @@ type Lambda struct {
Policy []IAMPolicyStatement `json:"policy"`

// VPC configuration.
VPC VPC `json:"vpc"`
VPC *VPC `json:"vpc"`
}

// Default implementation.
@@ -86,4 +86,8 @@ func (l *Lambda) Override(c *Config) {
if l.Role != "" {
c.Lambda.Role = l.Role
}

if l.VPC != nil {
c.Lambda.VPC = l.VPC
}
}

0 comments on commit f1bee26

Please sign in to comment.
You can’t perform that action at this time.