Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(kinesisanalytics-flink): support for Flink 1.19 runtime #30757

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/@aws-cdk/aws-kinesisanalytics-flink-alpha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const flinkApp = new flink.Application(this, 'Application', {
},
},
// ...
runtime: flink.Runtime.FLINK_1_18,
runtime: flink.Runtime.FLINK_1_19,
code: flink.ApplicationCode.fromBucket(bucket, 'my-app.jar'),
});
```
Expand All @@ -59,7 +59,7 @@ snapshotting, monitoring, and parallelism.
declare const bucket: s3.Bucket;
const flinkApp = new flink.Application(this, 'Application', {
code: flink.ApplicationCode.fromBucket(bucket, 'my-app.jar'),
runtime: flink.Runtime.FLINK_1_18,
runtime: flink.Runtime.FLINK_1_19,
checkpointingEnabled: true, // default is true
checkpointInterval: Duration.seconds(30), // default is 1 minute
minPauseBetweenCheckpoints: Duration.seconds(10), // default is 5 seconds
Expand All @@ -80,7 +80,7 @@ declare const bucket: s3.Bucket;
declare const vpc: ec2.Vpc;
const flinkApp = new flink.Application(this, 'Application', {
code: flink.ApplicationCode.fromBucket(bucket, 'my-app.jar'),
runtime: flink.Runtime.FLINK_1_18,
runtime: flink.Runtime.FLINK_1_19,
vpc,
});
```
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ export class Runtime {
/** Flink Version 1.18 */
public static readonly FLINK_1_18 = Runtime.of('FLINK-1_18');

/** Flink Version 1.19 */
public static readonly FLINK_1_19 = Runtime.of('FLINK-1_19');

/** Create a new Runtime with with an arbitrary Flink version string */
public static of(value: string) {
return new Runtime(value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ describe('Application', () => {
stack = new core.Stack();
bucket = new s3.Bucket(stack, 'CodeBucket');
requiredProps = {
runtime: flink.Runtime.FLINK_1_11,
runtime: flink.Runtime.FLINK_1_19,
code: flink.ApplicationCode.fromBucket(bucket, 'my-app.jar'),
};
});

test('default Flink Application', () => {
new flink.Application(stack, 'FlinkApplication', {
runtime: flink.Runtime.FLINK_1_11,
runtime: flink.Runtime.FLINK_1_19,
code: flink.ApplicationCode.fromBucket(bucket, 'my-app.jar'),
applicationName: 'MyFlinkApplication',
});

Template.fromStack(stack).hasResourceProperties('AWS::KinesisAnalyticsV2::Application', {
ApplicationName: 'MyFlinkApplication',
RuntimeEnvironment: 'FLINK-1_11',
RuntimeEnvironment: 'FLINK-1_19',
ServiceExecutionRole: {
'Fn::GetAtt': [
'FlinkApplicationRole2F7BCBF6',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as path from 'path';
import * as assets from 'aws-cdk-lib/aws-s3-assets';
import * as core from 'aws-cdk-lib';
import * as flink from '../lib';
import * as integ from '@aws-cdk/integ-tests-alpha';

const app = new core.App();
const stack = new core.Stack(app, 'FlinkAppCodeFromBucketTest');
Expand All @@ -15,8 +16,10 @@ const fileKey = asset.s3ObjectKey;
///! show
new flink.Application(stack, 'App', {
code: flink.ApplicationCode.fromBucket(bucket, fileKey),
runtime: flink.Runtime.FLINK_1_18,
runtime: flink.Runtime.FLINK_1_19,
});
///! hide

app.synth();
new integ.IntegTest(app, 'VpcTest', {
testCases: [stack],
});

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading