Closed Rapol closed 5 years ago
I'm seeing the same issue. Had to drop back to 2.3.5 for now.
I got the same issue with serverless-plugin-split-stacks
@ptraeg
Do you mean the version 2.3.5 can fix this issue?
Yes, with version 2.3.5, I can deploy successfully.
@Rapol
What I am interesting is, how you troubleshooting this type of issue in serverless framework. Enable "SLS_DEBUG=*
doesn't give me useful information.
Any details can share with me?
No updates on the issue? Im still using my PR to deploy a project with both split stack and domain manager.
@ozbillwang If I dont find any useful information with debug on, my next step is to take a look at the .serverless and inspect the cloudformations that is generating. I knew about this error because other plugins have the same problem with the split stack plugin (https://github.com/dougmoscrop/serverless-plugin-split-stacks/issues/9)
Anyone got any debug information on this? Starting point for investigation?
In our case is:
serverless-plugin-split-stacks@1.5.5
serverless-domain-manager@2.6.0
sls create_domain
sls deploy
The CloudFormation template is invalid: Template format error: Unresolved resource dependencies [ApiGatewayRestApi] in the Resources block of the template
If we downgrade to serverless-domain-manager@2.3.5
it works.
In my case below env is works fine on me.
Plugin fails during deployment:
serverless 1.26.1v serverless-domain-manager 2.3.6v
Plugins used:
Plugin is not compatible with serverless-plugin-split-stacks. The serverless-domain-manager is adding resources to the cloudformation after the packaging phase (
before:deploy:deploy
) which breaks the deployment since the split stack modifies the cloudformation before the packaging (after:aws:package:finalize:mergeCustomProviderResources
).I made a quick test and changed the following hook
'before:deploy:deploy': this.setUpBasePathMapping.bind(this)
to'before:package:finalize': this.setUpBasePathMapping.bind(this)
and was able to deploy the stack successfully.Created a PR with the changes https://github.com/amplify-education/serverless-domain-manager/pull/121