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:
145145 run : sleep 60
146146
147147 - 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
149149 - name : zip output
150150 run : zip -r cdk.py${{ matrix.python-version }}.out.zip cdk.out
151151 - name : Archive CDK artifacts
Original file line number Diff line number Diff line change 1212 RemovalPolicy ,
1313 Stack ,
1414)
15- from aws_cdk .aws_lambda import Architecture , CfnLayerVersionPermission
15+ from aws_cdk .aws_lambda import Architecture , CfnLayerVersionPermission , Runtime
1616from aws_cdk .aws_ssm import StringParameter
1717from cdk_aws_lambda_powertools_layer import LambdaPowertoolsLayerPythonV3
1818from constructs import Construct
@@ -83,6 +83,17 @@ def __init__(
8383 layer_name_x86 = f"AWSLambdaPowertoolsPythonV3-{ python_version_normalized } -x86"
8484 layer_name_arm64 = f"AWSLambdaPowertoolsPythonV3-{ python_version_normalized } -arm64"
8585
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+
8697 has_arm64_support = CfnParameter (
8798 self ,
8899 "HasARM64Support" ,
You can’t perform that action at this time.
0 commit comments