aws-powertools / powertools-lambda-python

A developer toolkit to implement Serverless best practices and increase developer velocity.
https://docs.powertools.aws.dev/lambda/python/latest/
MIT No Attribution
2.84k stars 389 forks source link

Docs: SAR lambda layer documentation uses incorrect version of Powertools #5359

Open svozza opened 2 hours ago

svozza commented 2 hours ago

What were you searching in the docs?

When attempting to deploy the SAR lambda layer in one of my accounts, I copied the CFN from the docs and it was pointing to v3.0.0:

AwsLambdaPowertoolsPythonLayer:
      Type: AWS::Serverless::Application
      Properties:
          Location:
              ApplicationId: arn:aws:serverlessrepo:eu-west-1:057560766410:applications/aws-lambda-powertools-python-layer-v3-python312-x86_64
              SemanticVersion: 3.0.0 # change to latest semantic version available in SAR

However, this resulted in a CFN error that said that the version was not available. Upon checking, it appears that SAR only supports v2 of Powertools currently.

Is this related to an existing documentation section?

https://docs.powertools.aws.dev/lambda/python/latest/#sar

How can we improve?

Set the version in the code example to a 2.x version.

Got a suggestion in mind?

No response

Acknowledgment

boring-cyborg[bot] commented 2 hours ago

Thanks for opening your first issue here! We'll come back to you as soon as we can. In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link

dreamorosi commented 2 hours ago

Hi @svozza, thank you for opening this issue.

We'll get this fixed and published soon.

In parallel, we'll also continue working to get v3 published in SAR (#5221).

svozza commented 2 hours ago

Thank you!