diff --git a/examples/lambda/simple/function.yaml b/examples/lambda/simple/function.yaml index 0c29d74fd6..2481c5c17b 100644 --- a/examples/lambda/simple/function.yaml +++ b/examples/lambda/simple/function.yaml @@ -3,5 +3,7 @@ kind: LambdaFunction spec: name: SimpleFunction image: ecr.ap-northeast-1.amazonaws.com/lambda-test:v0.0.1 + runtime: nodejs12.x + handler: app.lambdaHandler tags: app: simple diff --git a/pkg/app/piped/cloudprovider/lambda/client.go b/pkg/app/piped/cloudprovider/lambda/client.go index 9b722bd282..344290937f 100644 --- a/pkg/app/piped/cloudprovider/lambda/client.go +++ b/pkg/app/piped/cloudprovider/lambda/client.go @@ -72,8 +72,10 @@ func (c *client) Apply(ctx context.Context, fm FunctionManifest, role string) er } input := &lambda.CreateFunctionInput{ Code: &lambda.FunctionCode{ImageUri: &fm.Spec.ImageURI}, - FunctionName: &fm.Spec.Name, Role: &role, + FunctionName: &fm.Spec.Name, + Runtime: &fm.Spec.Runtime, + Handler: &fm.Spec.Handler, } _, err := c.client.CreateFunctionWithContext(ctx, input) if err != nil {