sparse-intern-71089
04/27/2021, 12:15 PMmillions-furniture-75402
04/27/2021, 1:22 PMconst lambdaLayer = new aws.lambda.LayerVersion(`${appName}-lambda-layer`, {
code: new pulumi.asset.FileArchive("./node_modules"),
compatibleRuntimes: [aws.lambda.NodeJS12dXRuntime],
layerName: `${appName}-lambda-layer`,
});
const lambdaFunctionApi = new aws.lambda.Function(
`${appName}-api`,
{
code: new pulumi.asset.FileArchive("./dist/app"),
handler: "app.handler",
layers: [lambdaLayer.arn],
role: applicationRole.arn,
runtime: aws.lambda.NodeJS12dXRuntime,
},
{ dependsOn: [applicationRole, lambdaLayer] },
);
millions-furniture-75402
04/27/2021, 1:24 PMnpm install --prefix ${DESTFOLDER} --production
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by