Skip to content

Commit f6042b2

Browse files
committed
Fixed: pulumi doesn't create the nodmods.zip file as it should plainblack#110
1 parent 6e5e6d7 commit f6042b2

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

docs/change-log.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ outline: deep
1313
* Implemented: figure out a way to share file extensions for s3files from schema #104
1414
* NOTE: Because of the above you may want to check out the new acceptedFileExtensions attribute in ving schemas and migrate your S3File integrations to use it.
1515
* Implemented: add a display of an s3file thumbnail to the page generator #105
16+
* Fixed: pulumi doesn't create the nodmods.zip file as it should #110
1617

1718
## 2024-04-23
1819
* Created SelectInput component to replace FormSelect. However, you should use FormInput with type select instead of using this directly in most cases.

pulumi/lambda-process-uploads.mjs

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
import * as aws from "@pulumi/aws";
2-
import { local } from "@pulumi/command";
32
import { prefix } from './utils.mjs';
43
import * as pulumi from "@pulumi/pulumi";
4+
import { execSync } from 'child_process';
55

66

77
export const createLambdaProcessUploads = (thumbnailsBucket) => {
88

9-
const createNodeModsZip = new local.Command(prefix('createNodeModsZip'), {
10-
create: './create.nodemods.layer.sh',
11-
dir: './pulumi/aws/lambda/layer/nodemods',
12-
assetPaths: ['./pulumi/aws/lambda/layer/nodemods/nodemods.zip'],
13-
});
9+
execSync('./create.nodemods.layer.sh', { cwd: './pulumi/aws/lambda/layer/nodemods' });
1410

1511
const nodeModsLayer = new aws.lambda.LayerVersion(prefix('nodeModsLayer'), {
1612
layerName: prefix('nodemods'),

0 commit comments

Comments
 (0)