Replies: 1 comment
-
Try passing the env with the same |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks, is there a way to mock certain dependencies of a stack in cdk tests ?
Let's say i've an exported value from DNSStack which is a certificate.
And this is required in the ApiGw stack, so the stack props has a cert parameter.
Now, when testing the ApiGw stack, how do i mock the cert parameter ? If i want to create a new mock Certificate , then I'm running into a lot of issues.
Sample code
Error
Stack "service" cannot reference {CertStack/cert/Resource[Ref]} in stack "CertStack". Cross stack references are only supported for stacks deployed to the same account or between nested stacks and their parent stack (edited)
Beta Was this translation helpful? Give feedback.
All reactions