Skip to content

Bug: over a year old botocore does not have register_initializer attr #2365

Closed
@rubenfonseca

Description

@rubenfonseca

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions