Skip to content
This repository was archived by the owner on Dec 30, 2024. It is now read-only.

Commit a280c46

Browse files
committed
Update to version v1.1.0
1 parent cbadfa2 commit a280c46

File tree

102 files changed

+20528
-9503
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+20528
-9503
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.1.0] - 2020-09-29
9+
### Updated
10+
- S3 storage for inference outputs to use Apache Parquet
11+
- Add paritioning to AWS Glue tables
12+
- Update to CDK v1.63.0
13+
- Update to AWS SDK v2.755.0
14+
815
## [1.0.0] - 2020-08-28
916
### Added
1017
- Initial release

deployment/build-s3-dist.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
set -e
2727

2828
# Important: CDK global version number
29-
cdk_version=1.54.0
29+
cdk_version=1.63.0
3030

3131
# Check to see if input has been provided:
3232
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/**********************************************************************************************************************
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. *
3+
* *
4+
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance *
5+
* with the License. A copy of the License is located at *
6+
* *
7+
* http://www.apache.org/licenses/LICNSE-2.0 *
8+
* *
9+
* or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES *
10+
* OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions *
11+
* and limitations under the License. *
12+
*********************************************************************************************************************/
13+
14+
"use strict"
15+
16+
const parition = require('./util/partition');
17+
const cfn = require('./util/cfn');
18+
19+
exports.handler = async(event, context) => {
20+
console.debug(`Event received is ${JSON.stringify(event)}`);
21+
try {
22+
let result;
23+
if (event.RequestType === undefined || event.RequestType !== 'Delete') {
24+
result = await parition.create();
25+
}
26+
27+
if (event.RequestType === 'Create' || event.RequestType === 'Update' || event.RequestType == 'Delete') {
28+
return await cfn.send(event, context, 'SUCCESS');
29+
}
30+
} catch(error) {
31+
console.error(`Error occured when calling create partition${error}`);
32+
if (event.RequestType === 'Create' || event.RequestType === 'Update' || event.RequestType == 'Delete') {
33+
await cfn.send(event, context, 'FAILED', error.message + `\nMore information in CloudWatch Log Stream: ${context.logStreamName}`);
34+
}
35+
}
36+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**********************************************************************************************************************
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. *
3+
* *
4+
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance *
5+
* with the License. A copy of the License is located at *
6+
* *
7+
* http://www.apache.org/licenses/LICNSE-2.0 *
8+
* *
9+
* or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES *
10+
* OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions *
11+
* and limitations under the License. *
12+
*********************************************************************************************************************/
13+
14+
module.exports = {
15+
name: "wf-analyze-text",
16+
testEnvironment: 'node',
17+
testMatch: [ "test/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)" ],
18+
collectCoverageFrom: [
19+
'*.js',
20+
'util/*.js',
21+
'!test/*.js',
22+
'!jest.config.js'
23+
],
24+
}

0 commit comments

Comments
 (0)