Channels
esc
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
policy-as-code
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
general
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
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
Powered by
#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
Post