-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Closed
Copy link
Labels
@aws-cdk/aws-lambdaRelated to AWS LambdaRelated to AWS LambdabugThis issue is a bug.This issue is a bug.
Description
Describe the bug
This PR removed the trailing version or alias of the functionArn and is potentially causing breaking changes.
For example,
If Stack A exporting the functionArn like arn:aws:lambda:us-east-1:123456789012:function:ProcessKinesisRecords:live to Stack B and CDK from Stack B importing that with Function.fromFunctionArn, stack B would have the functionArn with the trailing version or alias stripped off, causing the breaking changes.
Expected Behavior
fromFunctionArn() should not remove the trailing version or alias. We probably implement https://github.com/aws/aws-cdk/pull/29820/files with a feature flag.
Current Behavior
fromFunctionArn() would remove the trailing version or alias.
Reproduction Steps
as described above
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.138.0
Framework Version
No response
Node.js Version
all
OS
all
Language
TypeScript
Language Version
No response
Other information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-lambdaRelated to AWS LambdaRelated to AWS LambdabugThis issue is a bug.This issue is a bug.