Skip to content

Commit

Permalink
Merge branch 'main' into s3tosf
Browse files Browse the repository at this point in the history
  • Loading branch information
mickychetta authored Dec 16, 2021
2 parents ddcd313 + 5d79b76 commit 492ee67
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.131.0](https://github.com/awslabs/aws-solutions-constructs/compare/v1.130.0...v1.131.0) (2021-12-15)

* Upgraded all patterns to CDK v1.131.0

## [1.130.0](https://github.com/awslabs/aws-solutions-constructs/compare/v2.0.0...v1.130.0) (2021-12-15)

* Upgraded all patterns to CDK v1.130.0
Expand Down
2 changes: 1 addition & 1 deletion source/lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"./patterns/@aws-solutions-constructs/*"
],
"rejectCycles": "true",
"version": "1.130.0"
"version": "1.131.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
{
"Ref": "AWS::Partition"
},
":s3:::.4d6b6e64d28273dfb8ab06e43c8c5d13e10c44ea56a2996de4b2f693adbe2b95.py"
":s3:::fakelocation/fakefile.py"
]
]
},
Expand All @@ -176,7 +176,7 @@
{
"Ref": "AWS::Partition"
},
":s3:::.4d6b6e64d28273dfb8ab06e43c8c5d13e10c44ea56a2996de4b2f693adbe2b95.py/*"
":s3:::fakelocation/fakefile.py/*"
]
]
}
Expand Down Expand Up @@ -374,7 +374,7 @@
"Command": {
"Name": "gluestreaming",
"PythonVersion": "3",
"ScriptLocation": "asset.4d6b6e64d28273dfb8ab06e43c8c5d13e10c44ea56a2996de4b2f693adbe2b95.py"
"ScriptLocation": "s3://fakelocation/fakefile.py"
},
"Role": {
"Fn::GetAtt": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { CfnTable } from '@aws-cdk/aws-glue';
import { App, Stack } from '@aws-cdk/core';
import { KinesisstreamsToGluejob } from '../lib';
import { generateIntegStackName } from '@aws-solutions-constructs/core';
import { Asset } from '@aws-cdk/aws-s3-assets';
// import { Asset } from '@aws-cdk/aws-s3-assets';

// Setup
const app = new App();
Expand Down Expand Up @@ -46,9 +46,12 @@ new KinesisstreamsToGluejob(stack, 'test-kinesisstreams-lambda', {
command: {
name: 'gluestreaming',
pythonVersion: '3',
scriptLocation: new Asset(stack, 'ScriptLocation', {
path: `${__dirname}/transform.py`
}).assetPath
scriptLocation: 's3://fakelocation/fakefile.py'
// Our version of cdk-integ crashes when misinterpreting the bucket name
// After we refresh cdk-integ we should try this code again
// scriptLocation: new Asset(stack, 'ScriptLocation', {
// path: `${__dirname}/transform.py`
// }).assetPath
}
},
fieldSchema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ test('Create a Glue Job outside the construct', () => {
command: {
name: 'pythonshell',
pythonVersion: '2',
scriptLocation: 's3://existingFakeLocation/existingScript'
scriptLocation: 's3://existingfakelocation/existingScript'
},
role: new Role(stack, 'ExistingJobRole', {
assumedBy: new ServicePrincipal('glue.amazon.com'),
Expand Down Expand Up @@ -122,7 +122,7 @@ test('Create a Glue Job outside the construct', () => {
Command: {
Name: "pythonshell",
PythonVersion: "2",
ScriptLocation: "s3://existingFakeLocation/existingScript",
ScriptLocation: "s3://existingfakelocation/existingScript",
},
GlueVersion: "1",
MaxCapacity: 4,
Expand Down Expand Up @@ -150,7 +150,7 @@ test('Test custom deployment properties', () => {
command: {
name: _commandName,
pythonVersion: '3',
scriptLocation: 's3://existingFakeLocation/existingScript'
scriptLocation: 's3://existingfakelocation/existingScript'
},
role: new Role(stack, 'ExistingJobRole', {
assumedBy: new ServicePrincipal('glue.amazon.com'),
Expand Down Expand Up @@ -182,7 +182,7 @@ test('Test custom deployment properties', () => {
Command: {
Name: "glueetl",
PythonVersion: "3",
ScriptLocation: "s3://existingFakeLocation/existingScript",
ScriptLocation: "s3://existingfakelocation/existingScript",
},
GlueVersion: "1",
NumberOfWorkers: 2,
Expand Down

0 comments on commit 492ee67

Please sign in to comment.