-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
(custom_resources): How to break a cross-stack dependency #26758
Comments
It's not clear to me where the error comes from.
Do you mean the
Can you share the smallest code that represents both stacks and the their content? |
Ok I updated the details of the issue. Sorry it is not very clear where the dependency is coming from. This is code I want to simplify. Any help with a workaround would be very appreciated. |
Ok I made some tiny progress. This is what I am trying to write for breaking the dependency:
and this is what I get:
Would it make sense to make that property public, so we can keep exporting it? |
Why would you export the entrypoint? It is actually private so you can't export it like that. aws-cdk/packages/aws-cdk-lib/custom-resources/lib/provider-framework/provider.ts Line 154 in 2855da6
|
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Describe the bug
Hi, I have 2 stacks where one depends on the custom resource function of another.
Stack A has this
It has an output like (edited):
MyStack:ExportsOutputFnGetAttMyProviderframeworkonEvent60E6A034ArnCBF1E63C
Stack B gets passed myProvider as a parameter and has this
I am now trying to break the relationship between the two, but it I am blocked since there is no direct access to the CDK-generated Lambda.
Expected Behavior
Current Behavior
Reproduction Steps
Possible Solution
Would it be as easy as exposing this as a property of
Provider
?https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/custom-resources/lib/provider-framework/provider.ts#L181
Additional Information/Context
No response
CDK CLI Version
2.89.0
Framework Version
No response
Node.js Version
18
OS
Linux
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: