Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit bdae52b

Browse files
authored
Merge pull request #770 from aws-solutions/release/v5.1.11
Release v5.1.11
2 parents 6507014 + 1e0faa8 commit bdae52b

11 files changed

Lines changed: 77 additions & 18 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ 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+
## [5.1.11] - 2025-06-04
9+
10+
### Fixed
11+
12+
- Broken build process fixed (missing deps)
13+
- Upgraded setuptools
14+
- Added ServiceTimeout to Workflow custom resource
15+
16+
### Security
17+
18+
- Upgraded npm packages
19+
820
## [5.1.10] - 2025-02-06
921

1022
### Fixed

deployment/build-s3-dist.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,12 +315,20 @@ else
315315
fi
316316
cd "$build_dir"/lambda_layer_factory/ || exit 1
317317
rm -rf MediaInsightsEngineLambdaHelper/
318-
file=$(ls Media_Insights_Engine*.whl)
318+
wheel=$(find . -maxdepth 1 -type f \
319+
-iname 'media_insights_engine_lambda_helper*.whl' \
320+
| head -n 1)
321+
322+
if [[ -z "$wheel" ]]; then
323+
echo "ERROR: media_insights_engine_lambda_helper wheel not found." >&2
324+
exit 1
325+
fi
319326
# Note, $(pwd) will be mapped to /packages/ in the Docker container used for building the Lambda zip files. We reference /packages/ in requirements.txt for that reason.
320327
# Add the whl file to requirements.txt if it is not already there
321328
mv requirements.txt requirements.txt.old
322-
cat requirements.txt.old | grep -v "Media_Insights_Engine_Lambda_Helper" > requirements.txt
323-
echo "/packages/$file" >> requirements.txt;
329+
grep -v -Ei 'media[_-]insights[_-]engine[_-]lambda[_-]helper' requirements.txt.old \
330+
> requirements.txt
331+
echo "/packages/$(basename "$wheel")" >> requirements.txt
324332
# Build Lambda layer zip files and rename them to the filenames expected by the stack. The Lambda layer build script runs in Docker.
325333
# If Docker is not installed, then we'll use prebuilt Lambda layer zip files.
326334
echo "Running build-lambda-layer.sh:"

deployment/lambda_layer_factory/docker-entrypoint.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
#!/bin/bash
2+
set -euo pipefail
23

34
echo "================================================================================"
45
echo "Installing the packages listed in requirements.txt:"
56
echo "================================================================================"
67

78
cat /packages/requirements.txt
89

9-
for i in "$@"
10-
do
11-
echo "Installing for Python version $i"
12-
mkdir -p /packages/lambda_layer-python-$i/python/lib/python$i/site-packages
13-
pip$i install -q -r /packages/requirements.txt -t /packages/lambda_layer-python-$i/python/lib/python$i/site-packages
10+
for pyver in "$@"; do
11+
echo "🔧 Bootstrapping pip for Python ${pyver}"
12+
python${pyver} -m ensurepip --upgrade
13+
python${pyver} -m pip install --no-cache-dir --upgrade pip
14+
15+
echo "📦 Installing requirements for Python ${pyver}"
16+
python${pyver} -m pip install --no-cache-dir -r /packages/requirements.txt \
17+
-t "/packages/lambda_layer-python-${pyver}/python/lib/python${pyver}/site-packages"
1418
done
1519

1620
echo "================================================================================"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
pymediainfo==6.0.1
22
jsonpickle==3.0.0
33
aws-xray-sdk==2.12.0
4-
/packages/Media_Insights_Engine_Lambda_Helper-1.0.0-py3-none-any.whl
4+
/packages/Media_Insights_Engine_Lambda_Helper-1.0.0-py3-none-any.whl

solution-manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id: SO0163
22
name: media-insights-on-aws
3-
version: 5.1.10
3+
version: 5.1.11
44
cloudformation_templates:
55
- template: media-insights-on-aws-stack.template
66
main_template: true

source/cdk/lib/operator-library.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,7 @@ export class OperatorLibraryStack extends NestedStack {
12951295
const custom = new CustomResource(scope, id === outputName ? `CustomResource${id}` : id, {
12961296
resourceType: "Custom::CustomResource",
12971297
serviceToken: workflowCustomResourceArn.valueAsString,
1298+
serviceTimeout: Duration.minutes(10),
12981299
properties,
12991300
});
13001301

source/cdk/package-lock.json

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

source/cdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "media-insights-on-aws",
3-
"version": "5.1.10",
3+
"version": "5.1.11",
44
"description": "Synthesize templates for Media Insights on AWS using AWS Cloud Development Kit (CDK).",
55
"license": "Apache-2.0",
66
"private": true,

source/cdk/test/__snapshots__/media-insights-stack.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,7 +2076,7 @@ exports[`Snapshot media-insights root stack test 1`] = `
20762076
"CodeKeyPrefix",
20772077
],
20782078
},
2079-
"media_insights_on_aws_lambda_layer_python3.10-v5.1.10.zip",
2079+
"media_insights_on_aws_lambda_layer_python3.10-v5.1.11.zip",
20802080
],
20812081
],
20822082
},
@@ -2123,7 +2123,7 @@ exports[`Snapshot media-insights root stack test 1`] = `
21232123
"CodeKeyPrefix",
21242124
],
21252125
},
2126-
"media_insights_on_aws_lambda_layer_python3.11-v5.1.10.zip",
2126+
"media_insights_on_aws_lambda_layer_python3.11-v5.1.11.zip",
21272127
],
21282128
],
21292129
},
@@ -2170,7 +2170,7 @@ exports[`Snapshot media-insights root stack test 1`] = `
21702170
"CodeKeyPrefix",
21712171
],
21722172
},
2173-
"media_insights_on_aws_lambda_layer_python3.9-v5.1.10.zip",
2173+
"media_insights_on_aws_lambda_layer_python3.9-v5.1.11.zip",
21742174
],
21752175
],
21762176
},

0 commit comments

Comments
 (0)