Skip to content

Commit

Permalink
Merge pull request #31 from aws-solutions/release/v3.2.1
Browse files Browse the repository at this point in the history
Release v3.2.1
  • Loading branch information
sandimciin authored Aug 28, 2023
2 parents 269dfbf + 738de02 commit 9c78459
Show file tree
Hide file tree
Showing 13 changed files with 2,940 additions and 1,969 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ 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).

## [3.2.1] - 2023-08-28

### Added

- Unit tests for custom-resource/index.js file

### Changed

- Upgraded lambda runtimes to NodeJS 18 and AWS SDK v3
- Updated npm packages

### Fixed

- Issue where Anonymized data was sent even when CfnMapping is specified as No

## [3.2.0] - 2023-05-18

### Changed
Expand Down
5 changes: 2 additions & 3 deletions deployment/run-unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ run_javascript_test() {
cd $component_path

# install jest
npm install -g jest
npm install --save-dev jest
npm install --production=false
# run unit tests
npm test

Expand Down Expand Up @@ -69,4 +68,4 @@ do
exit 1
fi

done
done
20 changes: 9 additions & 11 deletions source/constructs/lib/live-streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,14 @@ export class LiveStreaming extends cdk.Stack {
new iam.PolicyStatement({
resources: [mediaLiveRole.roleArn],
actions: ['iam:PassRole']
}),
new iam.PolicyStatement({
resources: [`arn:${cdk.Aws.PARTITION}:logs:${cdk.Aws.REGION}:${cdk.Aws.ACCOUNT_ID}:log-group:/aws/lambda/*`],
actions: [
'logs:CreateLogGroup',
'logs:CreateLogStream',
'logs:PutLogEvents'
]
})
]
});
Expand All @@ -350,7 +358,7 @@ export class LiveStreaming extends cdk.Stack {
);

const customResourceLambda = new lambda.Function(this, 'CustomResource', {
runtime: lambda.Runtime.NODEJS_16_X,
runtime: lambda.Runtime.NODEJS_18_X,
handler: 'index.handler',
description: 'CFN Custom resource to copy assets to S3 and get the MediaConvert endpoint',
environment: {
Expand Down Expand Up @@ -379,16 +387,6 @@ export class LiveStreaming extends cdk.Stack {
}]
}
};
//cdk_nag
NagSuppressions.addResourceSuppressions(
customResourceLambda,
[
{
id: 'AwsSolutions-L1',
reason: 'nodejs 18 lambda runtime does not support javascript SDK v2'
}
]
);
/**
* custom resource, this will configure and deploy a mediaLive Input and SG
*/
Expand Down
Loading

0 comments on commit 9c78459

Please sign in to comment.