https://pulumi.com logo
#general
Title
# general
r

rough-football-77038

07/14/2021, 4:02 PM
Hi everyone! I am new with Pulumi. I have a trouble when I try to import a Lambda function in AWS. I use
Copy code
pulumi import aws:lambda/function:Function test_lambda my_test_lambda_function
but, this does not work, error: "Preview failed: handler and runtime must be set when PackageType is Zip" I don't have idea how set this parameters or if have other way to import a Lambda. I hope I have explained my problem well, I appreciate any help. Thanks!
b

billowy-army-68599

07/14/2021, 4:25 PM
this looks like an import bug I'm afraid, could you open an issue in github.com/pulumi/pulumi-aws
b

brave-planet-10645

07/14/2021, 4:49 PM
b

billowy-army-68599

07/14/2021, 4:50 PM
ah thanks Piers!
r

rough-football-77038

07/14/2021, 5:21 PM
Thanks Piers
6 Views