File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ jobs:
145
145
run : sleep 60
146
146
147
147
- name : CDK build
148
- run : npx cdk synth --verbose --context version="${{ inputs.latest_published_version }}" --context pythonVersion="${{ matrix.python-version }}" -o cdk.out
148
+ run : npx cdk synth --verbose --context version="${{ inputs.latest_published_version }}" --context pythonVersion="python ${{ matrix.python-version }}" -o cdk.out
149
149
- name : zip output
150
150
run : zip -r cdk.py${{ matrix.python-version }}.out.zip cdk.out
151
151
- name : Archive CDK artifacts
Original file line number Diff line number Diff line change 12
12
RemovalPolicy ,
13
13
Stack ,
14
14
)
15
- from aws_cdk .aws_lambda import Architecture , CfnLayerVersionPermission
15
+ from aws_cdk .aws_lambda import Architecture , CfnLayerVersionPermission , Runtime
16
16
from aws_cdk .aws_ssm import StringParameter
17
17
from cdk_aws_lambda_powertools_layer import LambdaPowertoolsLayerPythonV3
18
18
from constructs import Construct
@@ -83,6 +83,17 @@ def __init__(
83
83
layer_name_x86 = f"AWSLambdaPowertoolsPythonV3-{ python_version_normalized } -x86"
84
84
layer_name_arm64 = f"AWSLambdaPowertoolsPythonV3-{ python_version_normalized } -arm64"
85
85
86
+ if python_version == "python3.8" :
87
+ python_version = Runtime .PYTHON_3_8
88
+ if python_version == "python3.9" :
89
+ python_version = Runtime .PYTHON_3_9
90
+ if python_version == "python3.10" :
91
+ python_version = Runtime .PYTHON_3_10
92
+ if python_version == "python3.11" :
93
+ python_version = Runtime .PYTHON_3_11
94
+ if python_version == "python3.12" :
95
+ python_version = Runtime .PYTHON_3_12
96
+
86
97
has_arm64_support = CfnParameter (
87
98
self ,
88
99
"HasARM64Support" ,
You can’t perform that action at this time.
0 commit comments