hundreds-stone-38001
02/23/2021, 10:27 PM$ pulumi import aws:lambda/function:Function my-imported-lambda MyLambdaOnAWS
Previewing import (dev)
View Live: <https://app.pulumi.com/.../import-test/dev/previews/>...
Type Name Plan Info
+ pulumi:pulumi:Stack import-test-dev create 1 error
= └─ aws:lambda:Function my-imported-lambda import 1 error
Diagnostics:
aws:lambda:Function (my-imported-lambda):
error: Preview failed: diffing urn:pulumi:dev::import-test::aws:lambda/function:Function::my-imported-lambda: handler and runtime must be set when PackageType is Zip
pulumi:pulumi:Stack (import-test-dev):
error: preview failed
Any suggestion on how to deal with the error "handler and runtime must be set when PackageType is Zip"