I am using serverless 1.17. I had a service previously deployed with 1.15, that created an api with a usage plan and an api key.
I removed the stack (sls remove). I checked to make sure ALL resources were gone. I redeployed (sls deploy). I received the following error:
An error occurred while provisioning your stack: EISearchServiceUsagePlanKey - Usage Plan wkw8wr cannot be added because API Key axnaxll39k cannot reference multiple Usage Plans with the same API Stage: atax6mq8o4:dev.
To me this implies that not all the resources were removed when I did an sls remove, even though no resources related to the service existed when I attempted to redeploy. Is there an issue with CloudFormation and UsagePlan? Is sls properly removing the Plan? I assume so since no UsagePlan or Api Key existed when I attempted to redeploy.