First of all, a big thank you to the Serverless team that is doing a huge work!
My question is pretty simple. Why can’t I set API Gateway stage Variables. It actually acts as ENV variables and it would be more than helpful to be able to set them.
But nothing is set on API Gateway… Am I doing something wrong ?
I also have an extra question. Why different stages are creating a whole new cloudFormation stack on AWS instead of simply create an API Gateway stage in the same stack?
we’re currently working on better environment variable support for your functions. Will be released in the near future and is a very important feature for us. This should replace APIG stage variables completely.
I also have an extra question. Why different stages are creating a whole new cloudFront stack on AWS instead of simply create an API Gateway stage in the same stack?
We believe that every infrastructure should be completely separate from each other, so updating staging should not influence your production system (which it would if we would be setting up APIG with different stages). We simply disagree with AWS that this is a good way to build systems so we didn’t use this feature.
@flomotlik, I’d like to clarify the following statement: We believe that every infrastructure should be completely separate from each other, so updating staging should not influence your production system (which it would if we would be setting up APIG with different stages). We simply disagree with AWS that this is a good way to build systems so we didn’t use this feature.
Does this actually mean that now new API will be created per environment (DEV/TEST/PROD) and every single API will contain only one stage?
I am asking to finalize migration from 0.5 to 1.0, so after initial deployment I identified that my dev resources were moved to completely new API instance and I this causes some problems for consumers which currently use the old URL…
Does this actually mean that now new API will be created per environment (DEV/TEST/PROD) and every single API will contain only one stage?
Yup exactly. We also want to add an easier way for you to set up DNS for your API Gateway, so you don’t have to send out your actual API Gateway URL and can use a custom name in the future.