diff --git a/lambroll.go b/lambroll.go index 8ead26e..1cac3f3 100644 --- a/lambroll.go +++ b/lambroll.go @@ -267,7 +267,7 @@ func newFunctionFrom(c *lambda.FunctionConfiguration, code *lambda.FunctionCodeL Variables: e.Variables, } } - if i := c.ImageConfigResponse; i != nil { + if i := c.ImageConfigResponse; i != nil && i.ImageConfig != nil { fn.ImageConfig = &lambda.ImageConfig{ Command: i.ImageConfig.Command, EntryPoint: i.ImageConfig.EntryPoint,