Skip to content

Commit 8572101

Browse files
committed
fix: upgrade the version of python from 3.9 to 3.12 as it is reaching EOL in Dec 2025, across all yml, tf templates, github workflows etc
1 parent 3b1e1e0 commit 8572101

File tree

45 files changed

+82
-70
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+82
-70
lines changed

.github/workflows/bandit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ['3.9']
14+
python-version: ['3.12']
1515
steps:
1616
- uses: actions/checkout@v3
1717
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/checkov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ['3.9']
14+
python-version: ['3.12']
1515
steps:
1616
- uses: actions/checkout@v3
1717
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/pylic.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: true
1414
matrix:
15-
python-version: [3.9]
15+
python-version: [3.12]
1616
steps:
1717
#----------------------------------------------
1818
# check-out repo and set-up python
@@ -23,7 +23,7 @@ jobs:
2323
id: setup-python
2424
uses: actions/setup-python@v3
2525
with:
26-
python-version: 3.9
26+
python-version: 3.12
2727
#----------------------------------------------
2828
# ----- install & configure poetry -----
2929
#----------------------------------------------

.github/workflows/safety.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: true
1414
matrix:
15-
python-version: [3.9]
15+
python-version: [3.12]
1616
steps:
1717
#----------------------------------------------
1818
# check-out repo and set-up python
@@ -23,7 +23,7 @@ jobs:
2323
id: setup-python
2424
uses: actions/setup-python@v3
2525
with:
26-
python-version: 3.9
26+
python-version: 3.12
2727
#----------------------------------------------
2828
# ----- install & configure poetry -----
2929
#----------------------------------------------

.github/workflows/static-checking.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: true
1414
matrix:
15-
python-version: [3.9]
15+
python-version: [3.12]
1616
steps:
1717
#----------------------------------------------
1818
# check-out repo and set-up python
@@ -23,7 +23,7 @@ jobs:
2323
id: setup-python
2424
uses: actions/setup-python@v3
2525
with:
26-
python-version: 3.9
26+
python-version: 3.12
2727
#----------------------------------------------
2828
# ----- install & configure poetry -----
2929
#----------------------------------------------

aws_sra_examples/easy_setup/templates/sra-easy-setup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2405,7 +2405,7 @@ Resources:
24052405
- !Ref AWS::NoValue
24062406
Handler: index.lambda_handler
24072407
Role: !GetAtt rStartCodeBuildProjectLambdaRole.Arn
2408-
Runtime: python3.9
2408+
Runtime: python3.12
24092409
Timeout: 900
24102410
Environment:
24112411
Variables:

aws_sra_examples/modules/cloudtrail-org-module/templates/sra-cloudtrail-org-module-main.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ Resources:
368368
- !Ref AWS::NoValue
369369
Handler: index.lambda_handler
370370
Role: !GetAtt rCheckForResourceLambdaRole.Arn
371-
Runtime: python3.9
371+
Runtime: python3.12
372372
Timeout: 900
373373
Environment:
374374
Variables:
@@ -527,7 +527,7 @@ Resources:
527527
- !Ref AWS::NoValue
528528
Handler: index.lambda_handler
529529
Role: !GetAtt rCheckForResourceLambdaRole.Arn
530-
Runtime: python3.9
530+
Runtime: python3.12
531531
Timeout: 900
532532
Environment:
533533
Variables:
@@ -825,7 +825,7 @@ Resources:
825825
- !Ref AWS::NoValue
826826
Handler: index.lambda_handler
827827
Role: !GetAtt rStartCodeBuildProjectLambdaRole.Arn
828-
Runtime: python3.9
828+
Runtime: python3.12
829829
Timeout: 900
830830
Environment:
831831
Variables:

aws_sra_examples/modules/cloudtrail-org-module/templates/sra-cloudtrail-org-solution.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ Resources:
624624
- !Ref AWS::NoValue
625625
Handler: index.lambda_handler
626626
Role: !GetAtt rStartCodeBuildProjectLambdaRole.Arn
627-
Runtime: python3.9
627+
Runtime: python3.12
628628
Timeout: 900
629629
Environment:
630630
Variables:

aws_sra_examples/modules/config-org-module/templates/sra-config-org-module-main.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ Resources:
445445
- !Ref AWS::NoValue
446446
Handler: index.lambda_handler
447447
Role: !GetAtt rCheckForResourceLambdaRole.Arn
448-
Runtime: python3.9
448+
Runtime: python3.12
449449
Timeout: 900
450450
Environment:
451451
Variables:
@@ -610,7 +610,7 @@ Resources:
610610
- !Ref AWS::NoValue
611611
Handler: index.lambda_handler
612612
Role: !GetAtt rCheckForResourceLambdaRole.Arn
613-
Runtime: python3.9
613+
Runtime: python3.12
614614
Timeout: 900
615615
Environment:
616616
Variables:
@@ -908,7 +908,7 @@ Resources:
908908
- !Ref AWS::NoValue
909909
Handler: index.lambda_handler
910910
Role: !GetAtt rStartCodeBuildProjectLambdaRole.Arn
911-
Runtime: python3.9
911+
Runtime: python3.12
912912
Timeout: 900
913913
Environment:
914914
Variables:

aws_sra_examples/modules/config-org-module/templates/sra-config-org-solution.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ Resources:
680680
- !Ref AWS::NoValue
681681
Handler: index.lambda_handler
682682
Role: !GetAtt rStartCodeBuildProjectLambdaRole.Arn
683-
Runtime: python3.9
683+
Runtime: python3.12
684684
Timeout: 900
685685
Environment:
686686
Variables:

0 commit comments

Comments
 (0)