Skip to content

Commit d798c6f

Browse files
committed
[AWSX] Upgrade Python version to 3.12 for RDS and VPC flow monitoring templates
1 parent d957150 commit d798c6f

File tree

7 files changed

+7
-4
lines changed

7 files changed

+7
-4
lines changed

aws/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

22
# Created by https://www.gitignore.io/api/python
33

4+
# Bundled Files
5+
*.zip
6+
47
### Python ###
58
# Byte-compiled / optimized / DLL files
69
__pycache__/

aws/rds_enhanced_monitoring.zip

-8.94 KB
Binary file not shown.

aws/rds_enhanced_monitoring/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ d. **Not Recommended**: Plaintext
273273
274274
- Create a `lambda_execution` role and attach this policy.
275275
276-
- Create a lambda function: skip the blueprint, name it `functionname`, set the Runtime to `Python 3.11`, the Architecture to `arm64`, the handle to `lambda_function.lambda_handler`, and the role to `lambda_execution`.
276+
- Create a lambda function: skip the blueprint, name it `functionname`, set the Runtime to `Python 3.12`, the Architecture to `arm64`, the handle to `lambda_function.lambda_handler`, and the role to `lambda_execution`.
277277
278278
- Copy the content of `functionname/lambda_function.py` in the code section
279279

aws/rds_enhanced_monitoring/rds-enhanced-sam-template.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Resources:
2020
KeyId: !Ref KMSKeyId
2121
Architectures:
2222
- arm64
23-
Runtime: python3.11
23+
Runtime: python3.12
2424
Timeout: 10
2525
KmsKeyArn:
2626
!Sub

aws/vpc_flow_log_monitoring.zip

-3.82 KB
Binary file not shown.

aws/vpc_flow_log_monitoring/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ version, account, eni, source, destination, srcport, destport="22", protocol="6"
4949
5050
- Create a `lambda_execution` role and attach this policy
5151
52-
- Create a lambda function: Skip the blueprint, name it `functionname`, set the Runtime to `Python 3.11`, the Architecture to `arm64`,, the handle to `lambda_function.lambda_handler`, and the role to `lambda_execution`.
52+
- Create a lambda function: Skip the blueprint, name it `functionname`, set the Runtime to `Python 3.12`, the Architecture to `arm64`,, the handle to `lambda_function.lambda_handler`, and the role to `lambda_execution`.
5353
5454
- Copy the content of `functionname/lambda_function.py` in the code section, make sure to update the `KMS_ENCRYPTED_KEYS` environment variable with the encrypted key generated in step 1
5555

aws/vpc_flow_log_monitoring/vpc-flow-log-sam-template.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Resources:
1818
Policies:
1919
KMSDecryptPolicy:
2020
KeyId: !Ref KMSKeyId
21-
Runtime: python3.11
21+
Runtime: python3.12
2222
Architectures:
2323
- arm64
2424
Timeout: 10

0 commit comments

Comments
 (0)