What is a "stage" in the context of Amazon API Gateway? What is it's purpose and how to create one?
Is there any relation to "staging" in the production/staging/development convention?
What is a "stage" in the context of Amazon API Gateway? What is it's purpose and how to create one?
Is there any relation to "staging" in the production/staging/development convention?
I would consider API Gateway stages as different stages in your pipeline or different environments of your stack for the same application. You can have as many stages as you want. In a simple stack, we can think of 3 stages: dev, qa and prod. Few things which you can do with stages:
https://api-gateway-domain/dev/...
, https://api-gateway-domain/qa/..
,https://api-gateway-domain/prod/..
. Basically the URL would be https://api-gateway-domain/<stage_name>/..
. Although you can use Stages as part of a different stages in your pipeline or environments this goes against AWS best practice for managing environments.
If you want a development environment, then create a development user/account and deploy using that. Likewise other environments like Production or Pre-Production.
Which does then beg the question about what Stages actually are in AWS gateways used for? Whenever I've used them I've put a sensible placeholder there.
I would consider API Gateway stages as different stages in your pipeline or different environments of your stack for the same application. You can have as many stages as you want. In a simple stack, we can think of 3 stages: dev, qa and prod. Few things which you can do with stages:
https://api-gateway-domain/dev/...
, https://api-gateway-domain/qa/..
,https://api-gateway-domain/prod/..
. Basically the URL would be https://api-gateway-domain/<stage_name>/..
. Use "v1". If you need to deploy breaking changes while still servicing clients that use the current version and cannot be updated, you can create v2 and keep them both running at the same time.
You can consider an API Gateway stage as a specific lifecycle stage or version of your API.
For example:
From these stages you can configure things like throttling and caching.
for info about no stage
; deploy
;
some statements are just my guesses -- I cant find good resources
no stage
option doesno stage
, it just wont get deployed Selecting (No stage) will create a deployment of your API that is not associated with any stage.
To use this deployment, associate the deployment with a stage.-- Aws console warning
[]
To create a deployment that is not associated with a stage, select No stage. Later, you can associate this deployment with a stage.
<>
https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api-with-console.html
[]
Simply creating and developing an API Gateway API doesn't automatically make it callable by your users. To make it callable, you must deploy your API to a stage. \
So YES, a stage is required for the API Gateway to be usable by Postman.
<>
Does AWS API Gateway require a stage to be accessed by Postman? \
deploy
& stage
in Api Gateway
To understand what truly “Deployment” in API Gateway is,
see https://medium.com/@lancers/deployment-in-amazon-api-gateway-128c522c762e explains it well.
basically, you must deploy the Api so you can use it.
© 2022 - 2024 — McMap. All rights reserved.