Skip to content

Commit

Permalink
Merge pull request #58 from aws-solutions/develop
Browse files Browse the repository at this point in the history
Update to version v1.6.1
  • Loading branch information
tabdunabi authored Jul 15, 2022
2 parents ad1281d + 83ca977 commit 1222402
Show file tree
Hide file tree
Showing 31 changed files with 42,667 additions and 6,500 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.6.1] - 2022-07-14
### Updated
- npm package security patching (minimist, vm2)
- Gson 2.8.9

## [1.6.0] - 2021-11-01
### Added
- Support for [dynamic partitioning](https://aws.amazon.com/about-aws/whats-new/2021/08/introducing-dynamic-partitioning-amazon-kinesis-data-firehose/) in option 3 (Amazon Kinesis Data Streams, Amazon Kinesis Data Firehose, and Amazon S3). When enabled, dynamic partitioning allows for easy extraction of keys (for example, _customer_id_ or _transaction_id_) from incoming records and delivery of data grouped by these keys into corresponding S3 prefixes. Partitioning minimizes the amount of data scanned, optimizing performance and reducing costs of your analytics queries (using services such as Amazon Athena, Amazon EMR, or Amazon Redshift Spectrum).
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ To customize the solution, follow the steps below:

### Prerequisites
* [AWS Command Line Interface](https://aws.amazon.com/cli/)
* Node.js 14.x or later
* Node.js 14.x (or later) and npm 7 (or later)
* Python 3.8 or later
* Java 11 (only required if using Apache Flink)
* Apache Maven 3.1 (only required if using Apache Flink)
Expand Down
2 changes: 1 addition & 1 deletion deployment/build-s3-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ cd $source_dir/kinesis

application_name=amazon-kinesis-replay
application_version=0.1.0
wget https://github.com/aws-samples/$application_name/archive/release-$application_version.zip
wget https://github.com/aws-samples/$application_name/archive/refs/tags/release-$application_version.zip
unzip -q release-$application_version.zip

cd $application_name-release-$application_version
Expand Down
12 changes: 12 additions & 0 deletions source/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# don't ever lint node_modules
node_modules
cdk.out
# don't lint build output (make sure it's set to your correct build folder name)
dist
# don't lint test folders
test
# don't lint coverage output
coverage
*.config.js
# dont lint eslint config
*.eslint*
1 change: 1 addition & 0 deletions source/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
8 changes: 8 additions & 0 deletions source/.prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# .prettierrc or .prettierrc.yaml
proseWrap: 'preserve'
trailingComma: 'none'
tabWidth: 4
semi: true
singleQuote: true
quoteProps: 'preserve'
printWidth: 120
15 changes: 14 additions & 1 deletion source/docs/README-MSK.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,20 @@ CREATE TABLE stock_table (
);
```

> **Note**: In order to write records to S3, you need to [enable checkpointing](https://docs.aws.amazon.com/kinesisanalytics/latest/java/how-zeppelin-checkpoint.html).
> **Note**: If the cluster is configured for IAM access control, you will need to change some properties in the table definition:
```diff
-'properties.security.protocol' = 'SSL',
-'properties.ssl.truststore.location' = '/usr/lib/jvm/java-11-amazon-corretto/lib/security/cacerts',
-'properties.ssl.truststore.password' = 'changeit'

+'properties.security.protocol' = 'SASL_SSL',
+'properties.sasl.mechanism' = 'AWS_MSK_IAM',
+'properties.sasl.jaas.config' = 'software.amazon.msk.auth.iam.IAMLoginModule required;',
+'properties.sasl.client.callback.handler.class' = 'software.amazon.msk.auth.iam.IAMClientCallbackHandler'
```

In order to write records to S3, you need to [enable checkpointing](https://docs.aws.amazon.com/kinesisanalytics/latest/java/how-zeppelin-checkpoint.html):

```python
%flink.pyflink
Expand Down
2 changes: 1 addition & 1 deletion source/kinesis/kda-flink-ml/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.6</version>
<version>2.8.9</version>
</dependency>

<dependency>
Expand Down
16 changes: 15 additions & 1 deletion source/labs/msk-cluster-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,21 @@ export class MskClusterStack extends cdk.Stack {
const kafkaVersion = new cdk.CfnParameter(this, 'MSKKafkaVersion', {
type: 'String',
default: '2.8.1',
allowedValues: ['2.8.1', '2.8.0', '2.7.1', '2.7.0', '2.6.2', '2.6.1', '2.6.0', '2.5.1', '2.4.1.1', '2.3.1', '2.2.1']
allowedValues: [
'2.8.1',
'2.8.0',
'2.7.2',
'2.7.1',
'2.7.0',
'2.6.3',
'2.6.2',
'2.6.1',
'2.6.0',
'2.5.1',
'2.4.1.1',
'2.3.1',
'2.2.1'
]
});

const tlsMutualAuth = new cdk.CfnParameter(this, 'TLSMutualAuthentication', {
Expand Down
14 changes: 14 additions & 0 deletions source/lambda/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2021
},
env: {
node: true
},
extends: ['eslint:recommended'],
rules: {
indent: ['error', 4],
quotes: ['warn', 'single']
}
};
Loading

0 comments on commit 1222402

Please sign in to comment.