-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
kind/enhancementImprovements or new featuresImprovements or new features
Description
In AWS classic, you can do the following:
const lambda = new awsclassic.lambda.Function("lambdaFunction", {
code: new pulumi.asset.AssetArchive({
".": new pulumi.asset.FileArchive("./app"),
}),
runtime: "nodejs12.x",
role: lambdaRole.arn,
handler: "index.handler",
});In AWS Native you have to zip up your code first and then point the code.zipFile at the zip file you've created:
const lambdaFunction = new awsnative.lambda.Function("lambdaFunction", {
code: {
zipFile: "./app.zip",
},
runtime: "nodejs12.x",
role: lambdaRole.arn,
handler: "index.handler",
});Expected: Be able to use the Pulumi Asset resources
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/enhancementImprovements or new featuresImprovements or new features