Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

❗ NOTICE (lambda): importing Functions with fromFunctionArn removes trailing version or alias from ARN #30008

Closed
colifran opened this issue Apr 29, 2024 · 3 comments
Labels
@aws-cdk/aws-lambda Related to AWS Lambda management/tracking Issues that track a subject or multiple issues p0

Comments

@colifran
Copy link
Contributor

colifran commented Apr 29, 2024

Please add your +1 πŸ‘ to let us know you have encountered this


Status

In-Progress

What is the issue?

This PR introduced a change to the static fromFunctionArn method that removes any trailing version or alias from the specified function ARN. As a result, the functionArn property for Functions imported with fromFunctionArn will no longer include their version or alias.

What is the impact?

Functions imported using the static fromFunctionArn method will have their version or alias removed. As a result, the functionArn property for Functions imported with fromFunctionArn will be the raw ARN without the Function version or alias.

Workaround

No response

Who is affected?

Users importing Functions with a version or alias specific Function ARN via the fromFunctionArn static method.

How do I resolve this?

This has been resolved in patch release v2.139.1. This PR reverts the initial code change.

Related issues

No response

@colifran colifran added management/tracking Issues that track a subject or multiple issues p0 labels Apr 29, 2024
@colifran colifran pinned this issue Apr 29, 2024
@colifran colifran added the @aws-cdk/aws-lambda Related to AWS Lambda label Apr 29, 2024
@colifran colifran changed the title ❗ NOTICE (lambda): importing Functions with fromFunctionArn removes trailing version / alias from ARN ❗ NOTICE (lambda): importing Functions with fromFunctionArn removes trailing version or alias from ARN Apr 29, 2024
mergify bot pushed a commit to cdklabs/aws-cdk-notices that referenced this issue Apr 29, 2024
@moelasmar
Copy link
Contributor

We released a patch release https://github.com/aws/aws-cdk/releases/tag/v2.139.1 that contains the fix of this issue.

Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@bergjaak bergjaak unpinned this issue May 10, 2024
@bergjaak bergjaak pinned this issue May 10, 2024
@paulhcsun paulhcsun unpinned this issue May 27, 2024
@aws-cdk-automation
Copy link
Collaborator

Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.

@aws aws locked as resolved and limited conversation to collaborators Jul 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
@aws-cdk/aws-lambda Related to AWS Lambda management/tracking Issues that track a subject or multiple issues p0
Projects
None yet
Development

No branches or pull requests

3 participants