Open pchynoweth opened 5 years ago
Hello I have the same issue and I solved it here https://github.com/leftclickben/serverless-api-stage/pull/25 I have test yours and also works but I had issues when I wanted to use domain manager plugin if you could give it a test to the change I propose I would really appreciate it, thank you
I am using a
usagePlan
together with method level throttling. I get an error like this when I attempt to deploy:The issue is actually racy. Sometimes
deploy
succeeds. It appears to happen because the rules created for bothAWS::ApiGateway::UsagePlan
andAWS::ApiGateway::ApiKey
expect the deployment to create the stage. To this end they both depend on the deployment but they should actually depend on the stage.I have a proposed fix for this and will follow up with a PR.