@justworkflowit/cdk-constructs 0.0.203 → 0.0.205

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,7 +40,6 @@ const aws_lambda_1 = require("aws-cdk-lib/aws-lambda");
40
40
  const aws_iam_1 = require("aws-cdk-lib/aws-iam");
41
41
  const aws_secretsmanager_1 = require("aws-cdk-lib/aws-secretsmanager");
42
42
  const custom_resources_1 = require("aws-cdk-lib/custom-resources");
43
- const aws_lambda_nodejs_1 = require("aws-cdk-lib/aws-lambda-nodejs");
44
43
  const aws_s3_1 = require("aws-cdk-lib/aws-s3");
45
44
  const aws_s3_deployment_1 = require("aws-cdk-lib/aws-s3-deployment");
46
45
  const path = __importStar(require("path"));
@@ -114,10 +113,12 @@ class JustWorkflowItConstructs extends constructs_1.Construct {
114
113
  sources: deploymentSources,
115
114
  destinationBucket: bucket,
116
115
  });
117
- const integrationLambda = new aws_lambda_nodejs_1.NodejsFunction(this, 'JustWorkflowItDefinitionDeployerLambda', {
116
+ const integrationLambda = new aws_lambda_1.Function(this, 'JustWorkflowItDefinitionDeployerLambda', {
118
117
  functionName: `JustWorkflowItDefinitionDeployer-${props.disambiguator}`,
119
- entry: path.join(__dirname, '../lambda/definitionDeployerLambda.ts'),
120
- handler: 'handler',
118
+ code: aws_lambda_1.Code.fromAsset(path.join(__dirname, '../lambda'), {
119
+ exclude: ['*.ts', '*.d.ts'],
120
+ }),
121
+ handler: 'definitionDeployerLambda.handler',
121
122
  runtime: aws_lambda_1.Runtime.NODEJS_20_X,
122
123
  timeout: aws_cdk_lib_1.Duration.minutes(5),
123
124
  environment: {
@@ -127,9 +128,6 @@ class JustWorkflowItConstructs extends constructs_1.Construct {
127
128
  DEFINITION_BUCKET: bucket.bucketName,
128
129
  DEFINITION_KEYS_JSON: JSON.stringify(definitionKeys)
129
130
  },
130
- bundling: {
131
- nodeModules: ['@justworkflowit/api-client'],
132
- },
133
131
  });
134
132
  secret.grantRead(integrationLambda);
135
133
  bucket.grantRead(integrationLambda);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@justworkflowit/cdk-constructs",
3
3
  "description": "",
4
- "version": "0.0.203",
4
+ "version": "0.0.205",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "publishConfig": {