Closed
Description
Expected Behaviour
Powertools should work with all versions of botocore.
Current Behaviour
Right now, 5 AWS regions have an older botocore version (1.23.32
) compared to the officially documented (1.29.90
). With the new user-agent header feature, this makes Powertools fail at initialization when deployed to those specific regions.
`Error: module 'botocore' has no attribute 'register_initializer`
regions affected: me-central-1
, eu-south-2
, eu-central-2
, ap-southeast-2
, ap-south-2
Code snippet
N/A
Possible Solution
Don't call register_initializer
with older versions of botocore.
Steps to Reproduce
Use the latest Powertools with an older version of Powertools
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.9
Packaging format used
Lambda Layers
Debugging logs
No response