You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For me it would help if the reproducion steps would work exactly like the current_behavior step.
A Lambda should work like a Lambda no matter how you obtain it.
Additional Information/Context
I have two different stacks in which I define the Lambda and one in which I define the DynamoDB table, so that is why I use the function_from_arn method to get the Lambda and give it access rights.
This is because the role associated with the Lambda that this function needs to add permissions to is not defined. You can import and associate this role to the lambda function with fromFunctionAttributes()
I expected to call any methods I call on a Lambda function from ARN as I can do on a real Lambda
This won't necessarily be true for any given construct that is imported. See here for more info. Ping me if you have any followup questions, thanks!
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.
Describe the bug
Lambda.Function.function_from_arn doesn't produce a Lambda function
Expected Behavior
I expected to call any methods I call on a Lambda function from ARN as I can do on a real Lambda
Current Behavior
This works
Reproduction Steps
This doesn't work
Possible Solution
For me it would help if the reproducion steps would work exactly like the current_behavior step.
A Lambda should work like a Lambda no matter how you obtain it.
Additional Information/Context
I have two different stacks in which I define the Lambda and one in which I define the DynamoDB table, so that is why I use the
function_from_arn
method to get the Lambda and give it access rights.CDK CLI Version
2.54.0 (build 9f41881)
Framework Version
V2
Node.js Version
v14.20.0
OS
Linux
Language
Python
Language Version
Python 3.9.13
Other information
No response
The text was updated successfully, but these errors were encountered: