Skip to content

Commit f30bb55

Browse files
committed
CDK update
1 parent 65b0427 commit f30bb55

File tree

14 files changed

+6041
-1427
lines changed

14 files changed

+6041
-1427
lines changed

.gitignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
.DS_Store
1+
.DS_Store
2+
3+
*.js
4+
!jest.config.js
5+
*.d.ts
6+
node_modules
7+
8+
# CDK asset staging directory
9+
.cdk.staging
10+
cdk.out

textract-pipeline/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
# Useful commands
1+
# Welcome to your CDK TypeScript project!
2+
3+
This is a blank project for TypeScript development with CDK.
4+
5+
The `cdk.json` file tells the CDK Toolkit how to execute your app.
6+
7+
## Useful commands
28

39
* `npm run build` compile typescript to js
410
* `npm run watch` watch for changes and compile
11+
* `npm run test` perform the jest unit tests
512
* `cdk deploy` deploy this stack to your default AWS account/region
613
* `cdk diff` compare deployed stack with current state
714
* `cdk synth` emits the synthesized CloudFormation template

textract-pipeline/bin/textract-pipeline.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/usr/bin/env node
22
import 'source-map-support/register';
3-
import cdk = require('@aws-cdk/cdk');
3+
import * as cdk from '@aws-cdk/core';
44
import { TextractPipelineStack } from '../lib/textract-pipeline-stack';
55

66
const app = new cdk.App();
7-
new TextractPipelineStack(app, 'TextractPipeline');
8-
7+
new TextractPipelineStack(app, 'TextractPipelineStack');

textract-pipeline/cdk.context.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"@aws-cdk/core:enableStackNameDuplicates": "true",
3+
"aws-cdk:enableDiffNoFail": "true"
4+
}

textract-pipeline/cdk.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"app": "node bin/textract-pipeline.js"
2+
"app": "npx ts-node bin/textract-pipeline.ts"
33
}

textract-pipeline/lambda/helper/python/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class AwsHelper:
5353
def getClient(self, name, awsRegion=None):
5454
config = Config(
5555
retries = dict(
56-
max_attempts = 6
56+
max_attempts = 30
5757
)
5858
)
5959
if(awsRegion):
@@ -64,7 +64,7 @@ def getClient(self, name, awsRegion=None):
6464
def getResource(self, name, awsRegion=None):
6565
config = Config(
6666
retries = dict(
67-
max_attempts = 6
67+
max_attempts = 30
6868
)
6969
)
7070

12.6 MB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import cdk = require('@aws-cdk/cdk');
1+
import * as cdk from '@aws-cdk/core';
22
export declare class TextractPipelineStack extends cdk.Stack {
33
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps);
44
}

textract-pipeline/lib/textract-pipeline-stack.js

Lines changed: 83 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)