Skip to content

Commit

Permalink
fill default ephemeral storage size to 512
Browse files Browse the repository at this point in the history
avoid meaningless diff output.
  • Loading branch information
fujiwara committed Jun 10, 2022
1 parent 1e10324 commit cdc9e71
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 cdc9e71

Please sign in to comment.