sparse-intern-71089
11/17/2021, 8:45 PMmillions-furniture-75402
11/17/2021, 8:52 PMnpm run build
and something like this in your plan:
const lambdaFunctionArgs = {
code: new pulumi.asset.FileArchive("./dist/app"),
memorySize: 128,
environment: {
variables: {
API_BASE_PATH: apiBasePath,
},
},
handler: "lambdaApiHandler.handler",
role: applicationRole.arn,
runtime: aws.lambda.NodeJS12dXRuntime,
};
const lambdaFunctionApi = new aws.lambda.Function(
`${appName}-api`,
lambdaFunctionArgs,
{ dependsOn: [applicationRole] },
);
magnificent-lifeguard-15082
11/18/2021, 7:58 AMmillions-furniture-75402
11/18/2021, 1:32 PM