"DeprecationWarning: datetime.datetime.utcnow() is deprecated" — fixing the Python 3.12 warning in AWS Lambda
DEV Community
"DeprecationWarning: datetime.datetime.utcnow() is deprecated" — fixing the Python 3.12 warning in AWS Lambda
Bumped your Lambda to python3.12 and now CloudWatch Logs is full of utcnow() DeprecationWarnings? Here's why it fires from boto3 even when you didn't write utcnow(), and the one-line fix.
0 comments
No comments yet.