Skip to content

Commit 8d07b85

Browse files
fix(cli-integ): use Python_3_12 instead of Python_3_7 lambda runtime (#29305)
Fix for failing CLI integ canary ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent d308818 commit 8d07b85

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

packages/@aws-cdk-testing/cli-integ/resources/cdk-apps/sam_cdk_integ_app/lib/nested-stack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class NestedStack1 extends NestedStack {
1010
constructor(scope, id, props) {
1111
super(scope, id, props);
1212
new Function(this, 'FunctionPythonRuntime', {
13-
runtime: Runtime.PYTHON_3_7,
13+
runtime: Runtime.PYTHON_3_12,
1414
code: Code.fromAsset('./src/python/Function'),
1515
handler: 'app.lambda_handler',
1616
});

packages/@aws-cdk-testing/cli-integ/resources/cdk-apps/sam_cdk_integ_app/lib/test-stack.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ class CDKSupportDemoRootStack extends Stack{
2929
// Layers
3030
new PythonLayerVersion(this, 'PythonLayerVersion', {
3131
compatibleRuntimes: [
32-
Runtime.PYTHON_3_7,
32+
Runtime.PYTHON_3_12,
3333
],
3434
entry: './src/python/Layer',
3535
});
3636
new LayerVersion(this, 'LayerVersion', {
3737
compatibleRuntimes: [
38-
Runtime.PYTHON_3_7,
38+
Runtime.PYTHON_3_12,
3939
],
4040
code: Code.fromAsset('./src/python/Layer'),
4141
});
4242
new LayerVersion(this, 'BundledLayerVersionPythonRuntime', {
4343
compatibleRuntimes: [
44-
Runtime.PYTHON_3_7,
44+
Runtime.PYTHON_3_12,
4545
],
4646
code: Code.fromAsset('./src/python/Layer', {
4747
bundling: {
@@ -50,7 +50,7 @@ class CDKSupportDemoRootStack extends Stack{
5050
'-c',
5151
'rm -rf /tmp/asset-input && mkdir /tmp/asset-input && cp * /tmp/asset-input && cd /tmp/asset-input && pip install -r requirements.txt -t . && mkdir /asset-output/python && cp -R /tmp/asset-input/* /asset-output/python',
5252
],
53-
image: Runtime.PYTHON_3_7.bundlingImage,
53+
image: Runtime.PYTHON_3_12.bundlingImage,
5454
user: 'root',
5555
}
5656
}),
@@ -61,25 +61,25 @@ class CDKSupportDemoRootStack extends Stack{
6161
entry: './src/python/Function',
6262
index: 'app.py',
6363
handler: 'lambda_handler',
64-
runtime: Runtime.PYTHON_3_7,
64+
runtime: Runtime.PYTHON_3_12,
6565
functionName: 'pythonFunc',
6666
logRetention: RetentionDays.THREE_MONTHS,
6767
});
6868
new Function(this, 'FunctionPythonRuntime', {
69-
runtime: Runtime.PYTHON_3_7,
69+
runtime: Runtime.PYTHON_3_12,
7070
code: Code.fromAsset('./src/python/Function'),
7171
handler: 'app.lambda_handler',
7272
});
7373
new Function(this, 'BundledFunctionPythonRuntime', {
74-
runtime: Runtime.PYTHON_3_7,
74+
runtime: Runtime.PYTHON_3_12,
7575
code: Code.fromAsset('./src/python/Function/', {
7676
bundling: {
7777
command: [
7878
'/bin/sh',
7979
'-c',
8080
'rm -rf /tmp/asset-input && mkdir /tmp/asset-input && cp * /tmp/asset-input && cd /tmp/asset-input && pip install -r requirements.txt -t . && cp -R /tmp/asset-input/* /asset-output',
8181
],
82-
image: Runtime.PYTHON_3_7.bundlingImage,
82+
image: Runtime.PYTHON_3_12.bundlingImage,
8383
user: 'root',
8484
}
8585
}),

0 commit comments

Comments
 (0)