One possibly silly question, is the FileArchive on...
# aws
d
One possibly silly question, is the FileArchive on a folder slower than a FileArchive on a zip?
Copy code
const docsHandlerFunc = new aws.lambda.Function("docsHandlerFunc", {
   // Upload the code for our Lambda from the "./app" directory:
   code: new pulumi.asset.AssetArchive({
      ".": new pulumi.asset.FileArchive("./app"),
   }),
   runtime: "nodejs12.x",
   role: docsHandlerRole.arn,
});
Does Pulumi (or TF behind the scenes) zip the folder for us?
Asking because lambda deploy seems a bit slow. (for example compared to what I used to do with serverless/cloudformation)
thanks
b
So that's how I've always done it and it's been quicker than serverless/cloudformation
We don't run TF behind the scenes, just use the provider schema to map the API calls
👍 1
d
@brave-planet-10645 when you say that's how i always done it it's with a folder or with a zip? thanks again
b
As in, whenever I've created a lambda and used code in a folder rather than one of our magic functions then I've done
Copy code
code: new pulumi.asset.AssetArchive({
      ".": new pulumi.asset.FileArchive("./app"),
   }),
d
cool thanks for clarifying