This message was deleted.
# typescript
s
This message was deleted.
m
You want to use a FileArchive for your code:
Copy code
const myLambdaCode = new pulumi.asset.FileArchive("./folder");
const myLambda = new aws.lambda.Function(`myFunction`, {
    role: role.arn,
    runtime: "go1.x",
    handler: "main.handler",
    code: myLambdaCode,
});
https://www.pulumi.com/docs/intro/concepts/assets-archives/#archives
r
@*catmeme* Thanks for the response i tried FileArchive but some thing seems to be wrong while creating zip is there a way to save the Archive locally to see whats inside the zip file
m
try zipping it yourself and use:
const myLambdaCode = new pulumi.asset.FileArchive("./file.zip");