@@ -29,19 +29,19 @@ class CDKSupportDemoRootStack extends Stack{
29
29
// Layers
30
30
new PythonLayerVersion ( this , 'PythonLayerVersion' , {
31
31
compatibleRuntimes : [
32
- Runtime . PYTHON_3_7 ,
32
+ Runtime . PYTHON_3_12 ,
33
33
] ,
34
34
entry : './src/python/Layer' ,
35
35
} ) ;
36
36
new LayerVersion ( this , 'LayerVersion' , {
37
37
compatibleRuntimes : [
38
- Runtime . PYTHON_3_7 ,
38
+ Runtime . PYTHON_3_12 ,
39
39
] ,
40
40
code : Code . fromAsset ( './src/python/Layer' ) ,
41
41
} ) ;
42
42
new LayerVersion ( this , 'BundledLayerVersionPythonRuntime' , {
43
43
compatibleRuntimes : [
44
- Runtime . PYTHON_3_7 ,
44
+ Runtime . PYTHON_3_12 ,
45
45
] ,
46
46
code : Code . fromAsset ( './src/python/Layer' , {
47
47
bundling : {
@@ -50,7 +50,7 @@ class CDKSupportDemoRootStack extends Stack{
50
50
'-c' ,
51
51
'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' ,
52
52
] ,
53
- image : Runtime . PYTHON_3_7 . bundlingImage ,
53
+ image : Runtime . PYTHON_3_12 . bundlingImage ,
54
54
user : 'root' ,
55
55
}
56
56
} ) ,
@@ -61,25 +61,25 @@ class CDKSupportDemoRootStack extends Stack{
61
61
entry : './src/python/Function' ,
62
62
index : 'app.py' ,
63
63
handler : 'lambda_handler' ,
64
- runtime : Runtime . PYTHON_3_7 ,
64
+ runtime : Runtime . PYTHON_3_12 ,
65
65
functionName : 'pythonFunc' ,
66
66
logRetention : RetentionDays . THREE_MONTHS ,
67
67
} ) ;
68
68
new Function ( this , 'FunctionPythonRuntime' , {
69
- runtime : Runtime . PYTHON_3_7 ,
69
+ runtime : Runtime . PYTHON_3_12 ,
70
70
code : Code . fromAsset ( './src/python/Function' ) ,
71
71
handler : 'app.lambda_handler' ,
72
72
} ) ;
73
73
new Function ( this , 'BundledFunctionPythonRuntime' , {
74
- runtime : Runtime . PYTHON_3_7 ,
74
+ runtime : Runtime . PYTHON_3_12 ,
75
75
code : Code . fromAsset ( './src/python/Function/' , {
76
76
bundling : {
77
77
command : [
78
78
'/bin/sh' ,
79
79
'-c' ,
80
80
'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' ,
81
81
] ,
82
- image : Runtime . PYTHON_3_7 . bundlingImage ,
82
+ image : Runtime . PYTHON_3_12 . bundlingImage ,
83
83
user : 'root' ,
84
84
}
85
85
} ) ,
0 commit comments