Channels
pulumi-ai
package-authoring
pulumi-cdk
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
cloudengineering
yaml
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
blog-posts
localstack
welcome
gitlab
pulumi-kubernetes-operator
jobs
aws
pulumi-deployments
dotnet
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
general
Powered by
Title
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:
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
#getting-started
Join Slack