You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: Plan apply failed: creating urn:pulumi:billing-dev::billing::aws:lambda/function:Function::slacker: Error creating Lambda function: InvalidParameterValueException: Uploaded file must be a non-empty zip
I've tried both asset.NewFileArchive("./function") and asset.NewFileArchive("./function.zip"), and the error is the same.
Here's the files on the filesystem:
$ tree function
function
└── function.py
0 directories, 1 file
$ unzip -l function.zip
Archive: function.zip
Length Date Time Name
--------- ---------- ----- ----
2844 2018-09-20 08:56 function.py
--------- -------
2844 1 file
I was able to work around this issue by uploading my code to S3 and using the S3Bucket and S3Key properties.
Any help would be greatly appreciated. Thanks.
The text was updated successfully, but these errors were encountered:
We should definitely fix rpc.go, that's 100% a bug. There's probably another bug lurking but using rpcTokenSpecialAssetSig to serialize an Archive is definitely a bug.
I'm trying to create a lambda with code that is in a local directory. Here's a snippet:
When I run
pulumi up
, I get this error message:At @swgillespie's request, I changed line 103 of rpc.go from:
to:
and that got past the error message.
However, now I get this message:
I've tried both
asset.NewFileArchive("./function")
andasset.NewFileArchive("./function.zip")
, and the error is the same.Here's the files on the filesystem:
I was able to work around this issue by uploading my code to S3 and using the
S3Bucket
andS3Key
properties.Any help would be greatly appreciated. Thanks.
The text was updated successfully, but these errors were encountered: