-
Notifications
You must be signed in to change notification settings - Fork 189
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
serverless-plugin-split-stacks: AppSync Api not found in stack. Did you forget to deploy? #594
Comments
I have managed to run this through the debugger and the following screenshot shows that describeStackResources returns an empty array. I am using
|
Hi, Thanks for reporting this and debugging The split stack plugin is likely the problem here. I see two options to fix this:
|
@bboure Thank you for your response. Indeed I agree it is an incompatibility with
Which is what the plugin is executing, whereas this:
For the serverless-plugin-split-stacks this approach might work.
We can see he plugin creates a nested stack under One risk is that you are building a dependency on the Obviously this problem has broken my deployment pipeline - I did the upgrade to V2 in order to start implementing Javascript resolvers - for obvious reasons. Thank you for your help. O. |
@bboure I have tweaked some of the settings on
and there still remains a |
I don't have the bandwidth to provide technical support, but keep in mind:
|
Thanks both for all the details. I wonder where the I will try to investigate this and find a way to solve this that does not imply taking assumptions based on what The dirty workaround would be to walk through the main stack first and then all the nested stacks ( In your case, I think the problem occurs when the plugin tries to describe the stack to show you some details (API id, URL, API keys, etc). In that particular case, we could also swallow the error and skip that part instead of failing and forcing SF to roll everything back. |
If you add Outputs to the template in this plugin, and it's run first, the split stack plugin should fix the output to point to the nested stack output when it migrates |
Ah that's a good info. Thanks @owain68 If I remember correctly that's how v1 used to do this. That would explain why this issue is new. |
Thank you very much for your advice. I have removed @bboure I am not sure whether we should close this issue, I don't mind but maybe it might be worth including in the Upgrade Guide. I am happy to raise a PR in the doc for it - it might save someone about seven days of debugging! As my deployment is large, it takes forever to debug since the feedback loop is so long! O. |
@dougmoscrop If we remove serverless-plugin-split-stacks, the number of resources will be exceeded and deployments will not communicate, so we would like to continue using serverless-plugin-split-stacks. Is there any effective solution? |
I am getting the error
AppSync Api not found in stack. Did you forget to deploy?
.Here is the environment and output.
I am trying to migrate from V1 of the plugin using the migration guide.
All the resources appear to deploy for a short period of time before a ROLLBACK is issued. And then they disappear. I suspect that the Rollback is initiated by the serverless framework itself since the appsync plugin throws this error.
So
apiId
is not found for some reason which throws an exception.I am probably missing something in my
serverless.yml
or do I need to explicitly Output some CloudFormation values to fix this.Here is the header of my serverless yml file.
It would be very helpful if there is a working example available to compare with.
Thanks in advance.
O.,
The text was updated successfully, but these errors were encountered: