square-rocket-59657
01/30/2020, 8:14 AMclass myAwesomeClass {
... cool options here
}
awesome.ts
Then when creating my layer referencing it like:
const awesomeLayer = () => new aws.lambda.LayerVersion('my-lambda-version',
{
code: new pulumi.asset.AssetArchive({
'.': new pulumi.asset.FileArchive('./awesome.ts'),
}),
compatibleRuntimes: [
aws.lambda.NodeJS12dXRuntime,
aws.lambda.NodeJS10dXRuntime,
],
layerName: 'awesome_layer'
}, providerOpts);
The issue it that obviously the typescript file wont run in the lambda, is there a way that pulumi can compile this to normal JS? Or have i missed something?clever-egg-2543
01/30/2020, 7:48 PMtsc
first. Then use the build path, usually bin
or dist
to reference the js file.square-rocket-59657
01/31/2020, 1:47 AMclever-egg-2543
01/31/2020, 4:36 AMPulumi
is a runtime, not a compiler, afaik.