How does API Gateway support versioning and staged deployments of an API?
Short answer
API Gateway allows you to deploy the same API definition to multiple stages, such as development, testing, and production, each with its own configuration, throttling limits, and stage variables, letting you safely test changes in a lower environment before promoting the exact…
Advertisement
AModel answer
API Gateway allows you to deploy the same API definition to multiple stages, such as development, testing, and production, each with its own configuration, throttling limits, and stage variables, letting you safely test changes in a lower environment before promoting the exact same deployment to production without rebuilding the API from scratch.
Example
aws apigateway create-deployment --rest-api-id abc123 --stage-name staging
Real-world example
A software company tests a new version of its public API in a staging stage using real traffic from internal testers, then promotes the exact same deployment package to the production stage once it passes validation.
Likely follow-ups
- What are stage variables and how are they used?
- How do you roll back a bad deployment in API Gateway?
Related topics