Skip to content

Commit

Permalink
Merge pull request #955 from awslabs/bump/2.39.0
Browse files Browse the repository at this point in the history
chore(release): 2.39.0
  • Loading branch information
biffgaut authored Apr 23, 2023
2 parents adebe8c + aabee8d commit 316fb15
Show file tree
Hide file tree
Showing 51 changed files with 169 additions and 237 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

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.

## [2.39.0](https://github.com/awslabs/aws-solutions-constructs/compare/v2.38.0...v2.39.0) (2023-04-23)

Built on CDK v2.76.0

### Bug Fixes

* **aws-*-stepfunctions:** generate stack specific physical log group name ([#945](https://github.com/awslabs/aws-solutions-constructs/issues/945)) ([3e46579](https://github.com/awslabs/aws-solutions-constructs/commit/3e46579ef02e726143cf437be293c9435d013f5f))

## [2.38.0](https://github.com/awslabs/aws-solutions-constructs/compare/v2.37.0...v2.38.0) (2023-04-16)

Build on CDK v2.74.0
Expand Down
2 changes: 1 addition & 1 deletion deployment/v2/align-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const findVersion = process.argv[2];
const replaceVersion = process.argv[3];

// these versions need to be sourced from a config file
const awsCdkLibVersion = '2.74.0';
const awsCdkLibVersion = '2.76.0';
const constructsVersion = '10.0.0';
const MODULE_EXEMPTIONS = new Set([
'@aws-cdk/cloudformation-diff',
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": "2.38.0"
"version": "2.39.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -560,9 +560,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -544,9 +544,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,28 +197,3 @@ test('check custom event bus resource with props when deploy:true', () => {
Name: 'testcustomeventbus'
});
});

test('check LogGroup name', () => {
const stack = new cdk.Stack();

deployNewStateMachine(stack);

// Perform some fancy stuff to examine the specifics of the LogGroupName
const expectedPrefix = '/aws/vendedlogs/states/constructs/';
const lengthOfDatetimeSuffix = 13;

const template = Template.fromStack(stack);
const LogGroup = template.findResources("AWS::Logs::LogGroup");

const logName = LogGroup.testeventbridgestepfunctionsStateMachineLogGroup826A5B74.Properties.LogGroupName;
const suffix = logName.slice(-lengthOfDatetimeSuffix);

// Look for the expected Prefix and the 13 digit time suffix
expect(logName.slice(0, expectedPrefix.length)).toEqual(expectedPrefix);
expect(IsWholeNumber(suffix)).not.toBe(false);
});

function IsWholeNumber(target: string): boolean {
const numberPattern = /[0-9]{13}/;
return target.match(numberPattern) !== null;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,27 @@
"testeventbridgestepfunctionsconstructStateMachineLogGroup3098B32C": {
"Type": "AWS::Logs::LogGroup",
"Properties": {
"LogGroupName": "integ-test-no-arguments"
"LogGroupName": {
"Fn::Join": [
"",
[
"/aws/vendedlogs/states/constructs/eventbridge-stepfunctions-no-argumenttest-eventbridge-stepfunctions-constructStateMachineLog-",
{
"Fn::Select": [
2,
{
"Fn::Split": [
"/",
{
"Ref": "AWS::StackId"
}
]
}
]
}
]
]
}
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const props: EventbridgeToStepfunctionsProps = {
},
logGroupProps: {
removalPolicy: RemovalPolicy.DESTROY,
logGroupName: "integ-test-no-arguments"
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1120,9 +1120,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -841,9 +841,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,29 +321,3 @@ function testStateMachineProps(stack: cdk.Stack, userProps?: stepfunctions.State

return defaults.consolidateProps(defaultTestProp, userProps);
}

test('check LogGroup name', () => {
const stack = new cdk.Stack();
const publicApi = true;

createFargateConstructWithNewResources(stack, publicApi);

// Perform some fancy stuff to examine the specifics of the LogGroupName
const expectedPrefix = '/aws/vendedlogs/states/constructs/';
const lengthOfDatetimeSuffix = 13;

const template = Template.fromStack(stack);
const LogGroup = template.findResources("AWS::Logs::LogGroup");

const logName = LogGroup.testconstructStateMachineLogGroup2EB4F48B.Properties.LogGroupName;
const suffix = logName.slice(-lengthOfDatetimeSuffix);

// Look for the expected Prefix and the 13 digit time suffix
expect(logName.slice(0, expectedPrefix.length)).toEqual(expectedPrefix);
expect(IsWholeNumber(suffix)).not.toBe(false);
});

function IsWholeNumber(target: string): boolean {
const numberPattern = /[0-9]{13}/;
return target.match(numberPattern) !== null;
}
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,27 @@
"testconstructStateMachineLogGroup2EB4F48B": {
"Type": "AWS::Logs::LogGroup",
"Properties": {
"LogGroupName": "with-lambda"
"LogGroupName": {
"Fn::Join": [
"",
[
"/aws/vendedlogs/states/constructs/new-resourcestest-constructStateMachineLog-",
{
"Fn::Select": [
2,
{
"Fn::Split": [
"/",
{
"Ref": "AWS::StackId"
}
]
}
]
}
]
]
}
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const constructProps: FargateToStepfunctionsProps = {
stateMachineEnvironmentVariableName: 'CUSTOM_NAME',
logGroupProps: {
removalPolicy: RemovalPolicy.DESTROY,
logGroupName: "with-lambda"
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "PROVISIONED"
}
}
},
Expand Down
Loading

0 comments on commit 316fb15

Please sign in to comment.