Skip to content

aws-cdk-lib.aws_lambda: AdotLambdaLayerPythonSdkVersion incorrect latest version #26168

@michael-c-hoffman

Description

@michael-c-hoffman

Describe the bug

When using the AdotLambdaLayerPythonSdkVersion.html It returns back version 1.13 for latest. This is an extremely old version and the latest should return back (as of this report) 1.18.

Expected Behavior

when calling AdotLambdaLayerPythonSdkVersion.html should be able to specify any valid version or use the LATEST to get the current latest version.
LATEST -> arn:aws:lambda::901920570463:layer:aws-otel-python--ver-1-18-0:1
V1_18_0 -> arn:aws:lambda::901920570463:layer:aws-otel-python--ver-1-18-0:1
V1_17_0 -> arn:aws:lambda::901920570463:layer:aws-otel-python--ver-1-17-0:1
etc

Current Behavior

Currently the LATEST attribute returns version 1-13-0. There is also also no other versions other than V1_13_0 to specify directly.

Reproduction Steps

>>> import aws_cdk
>>> app = aws_cdk.App()
>>> stack = aws_cdk.Stack(app, "test")
>>> lambda_adot = aws_cdk.aws_lambda.AdotLambdaLayerPythonSdkVersion.LATEST
>>> lambda_adot.layer_arn(stack, aws_cdk.aws_lambda.Architecture.X86_64)
'arn:aws:lambda:${Token[AWS.Region.6]}:901920570463:layer:aws-otel-python-amd64-ver-1-13-0:1'

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.85.0 (build 4e0d726)

Framework Version

No response

Node.js Version

v18.6.0

OS

fedora 17

Language

Python

Language Version

python 3.10

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    aws-cdk-libRelated to the aws-cdk-lib packagebugThis issue is a bug.effort/smallSmall work item – less than a day of effortgood first issueRelated to contributions. See CONTRIBUTING.mdp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions