https://pulumi.com logo
#getting-started
Title
# getting-started
h

happy-exabyte-28607

04/05/2022, 6:31 PM
hi All, x=pulumi.FileArchive("./main.zip") # create lambda function lambda_function = lambda_.Function( "name", description="cleanup data", code=x, role=role_for_lambda.arn, handler="handler", runtime="go1.x") stderr: error: unexpected Asset Archive property value for "code"
1
b

bland-continent-32037

04/05/2022, 8:00 PM
Does this still error if you call pulumi.FileArchive in the lambda? Something like this:
Copy code
code=pulumi.FileArchive("main.zip")
h

happy-exabyte-28607

04/05/2022, 8:25 PM
yep ... same error
found out that I was using the wrong lambda imported from pulumi
4 Views