1 comentario
Recently, AWS is ending support for Python 3.9 in Lambda on December 15, 2025. Python 3.9 End-Of-Life (EOL) reached on October 30, 2025.
You can use the following script to identify these lambda functions in your account for any regions
#!/bin/bash
OLD_RUNTIME="python3.9"
NEW_RUNTIME="python3.12"
# Get a list of all enabled AWS regions
REGIONS=$(aws ec2 describe-regions --output text --query "Regions[].RegionName")
# For each region:
for REGION in $REGIONS; do
echo "Processing region: $REGION"
# List functions with the old runtime in the current region and extract FunctionNames
aws lambda list-functions --region "$REGION" --output text \
--query "Functions[?Runtime=='$OLD_RUNTIME'].FunctionName" | \
grep -v '^$' | \
xargs -I {} aws lambda update-function-configuration \
--function-name {} \
--runtime "$NEW_RUNTIME" \
--region "$REGION"
done
echo "Upgrade process completed for all regions."
respondido hace 5 meses
Contenido relevante
- preguntada hace un mes
- preguntada hace 10 meses
- preguntada hace un año
- preguntada hace 4 meses
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace 7 meses
