I’m trying to add a condition to an Output
When I add a condition to resource “A” it is understood by Serverless and it doesn’t generate the Cloudformation resource in the template if it doesn’t match. All is good here.
Now I want to Output that resource only if it’s matching that condition (obviously)
So what’s happening is Serverless doesn’t pick up the condition and push the code into the cloudformation template which will fail because the Outputed resource it’s getting the attribute from doesn’t exist because it’s not there thanks to the condition.
Is there a way to make this work? I don’t understand why it isn’t working.
Framework Core: 3.28.1 (local)