Apologies if this question has been asked before but I didn’t find anything on it.
I noticed that serverless deploys my functions to api gateway giving the stage name the same name as the stage in serverless config.
So if my stage is dev, the stage name is api gateway is dev also.
Is it possible to keep the api gateway stage name the same across all my environments and have different stage names in serverless?
Or is it possible to not have a stage at in api-gateway.
Looking at the AWS API Gateway console. Stage is required to deploy(make available) your API gateway endpoints. So I can’t imagine there would be any way for Serverless to deploy without defining a stage as well.
Through the API Gateway console, you could set the Integration Request | Lambda Function value to point at a different function/version, but I don’t see a way to do that via serverless atm.
Thanks buggy & bfieber, I will be looking into this in the next couple days. and see what I can achieve with it. I will try to create my own apiGateway definition as buggy suggested.
Thanks for your reply, yes I meant AWS, does serverless have any special tag to generate random numbers within names, or will have to create a js function get a random number going and pass it to serverless?
Also apologies if I missed it, but I couldn’t find what characters are allowing within normalised strings in serverless, is it a-z,A-Z,0-9,-,_?