-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(aws-scheduler-targets-alpha): Cannot use imported function ARN with LambdaInvoke
target
#29284
Comments
I guess the Schedule is not aware of that attribute from the lambda target. We probably need to fix that in the Schedule. |
Hi, I'm working on this issue. |
@anan-k Awesome! Let me know if you need any help. Have you submit the PR draft? |
@pahud Thank you! I have not written the PR draft yet. When I finish it I will inform you. |
@pahud I opened a PR to deal with this issue. I also mention @filletofish because you seem to know a lot about the scheduler-targets-alpha package. |
Comments on closed issues and PRs are hard for our team to see. |
1 similar comment
Comments on closed issues and PRs are hard for our team to see. |
Describe the bug
I'm trying to invoke a "singleton" lambda created in another Stack. I expose the Function ARN via a CloudFormation output. If the lambda function ARN is being imported from a CFN output (e.g.,
Fn.importValue
), even withsameEnvironment: true
, an error is thrown at synth time.Expected Behavior
I expected the validation for the region to be ignored if I use
Lambda.fromFunctionAttributes
with thesameEnvironment
value set totrue
.Current Behavior
I get this error:
Reproduction Steps
Possible Solution
If
sameEnvironment
is set totrue
on the imported lambda, the validations should be skipped.Additional Information/Context
Alpha versions are latest as well
CDK CLI Version
2.130.0 (build bd6e5ee)
Framework Version
No response
Node.js Version
20.x
OS
MacOS
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: