leftclickben / serverless-api-stage

AWS API Gateway stage plugin for serverless framework
MIT License
48 stars 16 forks source link

Modify CF template before nested stacks get created #26

Open rmbl opened 5 years ago

rmbl commented 5 years ago

We're using serverless-plugin-split-stacks to split the resulting CF template into nested stacks. This occurs on after:aws:package:finalize:mergeCustomProviderResources which is part of package:finalize. Because of this the Stage gets added too late and leads to errors when deploying it to AWS.

This PR moves the modifications from this plugin to the beginning of package:finalize to fix that.

juanjoDiaz commented 4 years ago

Is there anything blocking this from being merged and released?

rmbl commented 4 years ago

I should probably fix the tests. Other than that it has been working since then over a few hundred deployments for us.