This folder contains a Go project that balances the layer version of Lambda Powertools across all regions, so every region has the same layer version.
Before:
arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPythonV2:11
...
arn:aws:lambda:eu-west-1:017000801446:layer:AWSLambdaPowertoolsPythonV2:9
After:
arn:aws:lambda:eu-central-1:017000801446:layer:AWSLambdaPowertoolsPythonV2:11
...
arn:aws:lambda:eu-west-1:017000801446:layer:AWSLambdaPowertoolsPythonV2:11
- Query all regions to find the greatest version number
- Download the latest layer from eu-central-1
- Use the layer contents to bump the version on each region until it matches 1
- go >= 1.18
- Set your AWS_PROFILE to the correct profile
go run .
- Profit :-)