AWS AWS API Gateway: Stage Variables AWS API Gateway allows you to deploy the same API for different stages. It separates deployments of the same code for different environments, enabling "code once" principles. But you already see where the trap is.