Skip to content

Commit eac6826

Browse files
committed
Fixed typo and the path to the lambda function
1 parent cf88adf commit eac6826

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

infrastructure-cdk/lib/constructs/java-build-pipeline.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
S3DeployAction,
1010
S3SourceAction
1111
} from "aws-cdk-lib/aws-codepipeline-actions";
12-
import * as path from "path";
1312
import {Code, Function, Runtime} from "aws-cdk-lib/aws-lambda";
1413
import {Aws, Duration} from "aws-cdk-lib";
1514
import {PolicyStatement} from "aws-cdk-lib/aws-iam";
@@ -116,7 +115,7 @@ export class JavaBuildPipeline extends Construct {
116115
});
117116

118117
const versionUpdateFn = new Function(this, 'version-update-fn', {
119-
code: Code.fromAsset(path.join(__dirname, '../../flink-app-redeploy-hook')),
118+
code: Code.fromAsset('flink-app-redeploy-hook'),
120119
handler: "app.lambda_handler",
121120
runtime: Runtime.PYTHON_3_9,
122121
environment: {

infrastructure-cdk/lib/infra-pipeline-stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class InfraPipelineStack extends Stack {
2121
"cd infrastructure-cdk",
2222
"npm ci",
2323
"npm run build",
24-
"npm cdk synth"
24+
"npx cdk synth"
2525
],
2626
primaryOutputDirectory: 'infrastructure-cdk/cdk.out'
2727
})

0 commit comments

Comments
 (0)