Skip to content

Commit

Permalink
Merge pull request #23 from buddhike/fix/re-parameter
Browse files Browse the repository at this point in the history
Use RuntimeEnvironment specified in template args when creating MSF app
  • Loading branch information
jeremyber-aws authored Mar 12, 2024
2 parents ff07c39 + 6ee461f commit d529b9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class CdkInfraKdsToS3Stack extends cdk.Stack {
region: this.region,
partition: this.partition,
appName: cfnParams.get("AppName")!.valueAsString,
runtimeEnvironment: MsfRuntimeEnvironment.FLINK_1_18,
runtimeEnvironment: cfnParams.get("RuntimeEnvironment")!.valueAsString,
serviceExecutionRole: appRole.roleArn,
bucketName: cfnParams.get("BucketName")!.valueAsString,
jarFile: cfnParams.get("JarFile")!.valueAsString,
Expand Down Expand Up @@ -225,7 +225,7 @@ export class CdkInfraKdsToS3Stack extends cdk.Stack {

params.set("RuntimeEnvironment", new cdk.CfnParameter(this, "RuntimeEnvironment", {
type: "String",
default: "FLINK-1_15",
default: MsfRuntimeEnvironment.FLINK_1_18.toString(),
description: "Flink runtime environment"
}));

Expand Down
2 changes: 1 addition & 1 deletion cdk-infra/shared/lib/msf-java-app-construct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface MsfJavaAppProps extends StackProps {
region: string;
partition: string;
appName: string;
runtimeEnvironment: MsfRuntimeEnvironment,
runtimeEnvironment: string,
serviceExecutionRole: string;
bucketName: string;
jarFile: string;
Expand Down

0 comments on commit d529b9d

Please sign in to comment.