From ee28f4209cb003362792a2dd23c24cdce8c2e2e3 Mon Sep 17 00:00:00 2001 From: Sumu Date: Thu, 29 Feb 2024 00:07:19 -0500 Subject: [PATCH] update runtimes in test-stack.js Signed-off-by: Sumu --- .../cdk-apps/sam_cdk_integ_app/lib/test-stack.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/@aws-cdk-testing/cli-integ/resources/cdk-apps/sam_cdk_integ_app/lib/test-stack.js b/packages/@aws-cdk-testing/cli-integ/resources/cdk-apps/sam_cdk_integ_app/lib/test-stack.js index 9df6588f83bd3..3e9a071de8ff1 100644 --- a/packages/@aws-cdk-testing/cli-integ/resources/cdk-apps/sam_cdk_integ_app/lib/test-stack.js +++ b/packages/@aws-cdk-testing/cli-integ/resources/cdk-apps/sam_cdk_integ_app/lib/test-stack.js @@ -29,19 +29,19 @@ class CDKSupportDemoRootStack extends Stack{ // Layers new PythonLayerVersion(this, 'PythonLayerVersion', { compatibleRuntimes: [ - Runtime.PYTHON_3_7, + Runtime.PYTHON_3_12, ], entry: './src/python/Layer', }); new LayerVersion(this, 'LayerVersion', { compatibleRuntimes: [ - Runtime.PYTHON_3_7, + Runtime.PYTHON_3_12, ], code: Code.fromAsset('./src/python/Layer'), }); new LayerVersion(this, 'BundledLayerVersionPythonRuntime', { compatibleRuntimes: [ - Runtime.PYTHON_3_7, + Runtime.PYTHON_3_12, ], code: Code.fromAsset('./src/python/Layer', { bundling: { @@ -50,7 +50,7 @@ class CDKSupportDemoRootStack extends Stack{ '-c', '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', ], - image: Runtime.PYTHON_3_7.bundlingImage, + image: Runtime.PYTHON_3_12.bundlingImage, user: 'root', } }), @@ -61,17 +61,17 @@ class CDKSupportDemoRootStack extends Stack{ entry: './src/python/Function', index: 'app.py', handler: 'lambda_handler', - runtime: Runtime.PYTHON_3_7, + runtime: Runtime.PYTHON_3_12, functionName: 'pythonFunc', logRetention: RetentionDays.THREE_MONTHS, }); new Function(this, 'FunctionPythonRuntime', { - runtime: Runtime.PYTHON_3_7, + runtime: Runtime.PYTHON_3_12, code: Code.fromAsset('./src/python/Function'), handler: 'app.lambda_handler', }); new Function(this, 'BundledFunctionPythonRuntime', { - runtime: Runtime.PYTHON_3_7, + runtime: Runtime.PYTHON_3_12, code: Code.fromAsset('./src/python/Function/', { bundling: { command: [ @@ -79,7 +79,7 @@ class CDKSupportDemoRootStack extends Stack{ '-c', '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', ], - image: Runtime.PYTHON_3_7.bundlingImage, + image: Runtime.PYTHON_3_12.bundlingImage, user: 'root', } }),