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

Commit 20b0922

Browse files
authored
Merge pull request #44 from sanjay-reddy-kandi/main
release/v1.8.13
2 parents 9aa3034 + 5353207 commit 20b0922

28 files changed

+32491
-44166
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
!source/lambda/**/*.js
99
!**/cdk-solution-helper/index.js
1010

11-
package-lock.json
1211
node_modules
1312
**/__pycache__/*
1413
*.venv-test/

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
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.8.13] - 2024-11-27
9+
### Changed
10+
- Upgraded cross-spawn to mitigate CVE-2024-21538
11+
- Added Locked Dependency Versions
12+
813
## [1.8.12] - 2024-09-18
914
### Changed
1015
- Upgraded path-to-regexp to mitigate CVE-2024-45296

deployment/build-s3-dist.sh

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,12 @@ for folder in */ ; do
157157
fi
158158
done
159159

160-
if [ -e "requirements.txt" ]; then
161-
echo "Installing python lambda using virtual environment"
162-
python3 -m venv .venv-test
163-
echo "Activating virtual environment"
164-
source .venv-test/bin/activate
165-
python3 -m pip install -U pip setuptools
166-
echo "Executing pip3 install -q -r requirements.txt --target ./"
167-
python3 -m pip install -q -r requirements.txt --target ./
168-
echo "Deactivating virtual environment"
169-
deactivate
170-
echo "Deleting python virtual environment"
171-
rm -fr .venv-test
160+
if [ -e "pyproject.toml" ]; then
161+
echo "Installing python lambda using Poetry"
162+
"$POETRY_HOME"/bin/poetry install --no-dev
163+
"$POETRY_HOME"/bin/poetry export -f requirements.txt --output requirements.txt --without-hashes
164+
pip3 install -r requirements.txt --target ./
165+
rm requirements.txt
172166
elif [ -e "package.json" ]; then
173167
echo "Installing node dependencies"
174168
echo "Executing do_cmd npm install --omit=dev"

deployment/run-unit-tests.sh

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,6 @@ else
5555
export SOLUTION_TRADEMARKEDNAME
5656
fi
5757

58-
setup_python_env() {
59-
if [ -d "./.venv-test" ]; then
60-
echo "Reusing already setup python venv in ./.venv-test. Delete ./.venv-test if you want a fresh one created."
61-
return
62-
fi
63-
echo "Setting up python venv"
64-
python3 -m venv .venv-test
65-
echo "Initiating virtual environment"
66-
source .venv-test/bin/activate
67-
echo "Installing python packages"
68-
pip3 install -U pip setuptools
69-
pip3 install -r requirements.txt --target .
70-
pip3 install -r requirements-dev.txt
71-
echo "deactivate virtual environment"
72-
deactivate
73-
}
74-
7558
run_python_lambda_test() {
7659
lambda_name=$1
7760
lambda_description=$2
@@ -80,12 +63,12 @@ run_python_lambda_test() {
8063
echo "------------------------------------------------------------------------------"
8164
cd $source_dir/lambda/$lambda_name
8265

83-
[ "${CLEAN:-true}" = "true" ] && rm -fr .venv-test
84-
85-
setup_python_env
66+
echo "Installing python packages"
67+
# This creates a virtual environment based on the project name in pyproject.toml.
68+
"$POETRY_HOME"/bin/poetry install
8669

8770
echo "Initiating virtual environment"
88-
source .venv-test/bin/activate
71+
source $("$POETRY_HOME"/bin/poetry env info --path)/bin/activate
8972

9073
# setup coverage report path
9174
mkdir -p $source_dir/test/coverage-reports
@@ -103,7 +86,6 @@ run_python_lambda_test() {
10386
deactivate
10487

10588
if [ "${CLEAN:-true}" = "true" ]; then
106-
rm -fr .venv-test
10789
# Note: leaving $source_dir/test/coverage-reports to allow further processing of coverage reports
10890
rm -fr coverage
10991
rm .coverage

solution-manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
id: SO0143 # Solution Id
33
name: devops-monitoring-dashboard-on-aws # trademarked name
44
opensource_archive: aws-devops-monitoring-dashboard.zip
5-
version: v1.8.12 # current version of the solution. Used to verify template headers
5+
version: v1.8.13 # current version of the solution. Used to verify template headers
66
cloudformation_templates: # This list should match with AWS CloudFormation templates section of IG
77
- template: aws-devops-monitoring-dashboard.template
88
main_template: true

source/bin/aws_devops_monitoring_dashboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const SOLUTION_NAME = process.env['SOLUTION_NAME'] || 'undefined';
1919
const DIST_VERSION = process.env['DIST_VERSION'] || '%%VERSION%%';
2020
const DIST_OUTPUT_BUCKET = process.env['DIST_OUTPUT_BUCKET'] || '%%BUCKET%%';
2121
const DIST_SOLUTION_NAME = process.env['DIST_SOLUTION_NAME'] || '%%SOLUTION%%';
22-
const LAMBDA_RUNTIME_NODEJS = lambda.Runtime.NODEJS_20_X;
22+
const LAMBDA_RUNTIME_NODEJS = lambda.Runtime.NODEJS_22_X;
2323
const TEMPLATE_FORMAT_VERSION = '2010-09-09';
2424

2525
const app = new cdk.App();

0 commit comments

Comments
 (0)