Skip to content

Commit

Permalink
Merge pull request #242 from fujiwara/fill-default-storage
Browse files Browse the repository at this point in the history
fill default ephemeral storage size to 512
  • Loading branch information
fujiwara authored Jun 10, 2022
2 parents 1e10324 + cdc9e71 commit 2c39adc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lambroll.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func New(opt *Option) (*App, error) {
}

for name, f := range funcs {
prefixedFuncs[prefix + name] = f
prefixedFuncs[prefix+name] = f
}
}
loader.Funcs(prefixedFuncs)
Expand Down Expand Up @@ -229,6 +229,11 @@ func fillDefaultValues(fn *Function) {
Mode: aws.String("PassThrough"),
}
}
if fn.EphemeralStorage == nil {
fn.EphemeralStorage = &lambda.EphemeralStorage{
Size: aws.Int64(512),
}
}
if fn.Timeout == nil {
fn.Timeout = aws.Int64(3)
}
Expand Down

0 comments on commit 2c39adc

Please sign in to comment.