I want to create a new stage in AWS Api Gateway, but for some reason deployment list is empty. I tried checking all the sections, but could not find a section where I can add/create a deployment item.
Any ideas how to resolve this?
To create a new stage using the API Gateway console, follow these steps:. Sign in to the API Gateway console at https://console.aws.amazon.com/apigateway . From the APIs navigation pane, choose Stages under an API. From the Stages navigation pane, choose Create.
There's a new feature on Amazon API Gateway called stage variables. Stage variables act like environment variables and can be used to change the behavior of your API Gateway methods for each deployment stage; for example, making it possible to reach a different back end depending on which stage the API is running on.
via console An operator can easily delete an existing API Gateway stage through the API Gateway Console. For each of the deployed APIs <stackname>-backend and <stackname>-distribution , select the API and then select stages , finally select the deployed stage and use the Delete Stage button.
This happens when you don't have any deployment for you API. You could deploy your API and create new stage.
To expand on Zoey Sun's answer:
If you don't have any deployments, you need to create one, which it seems can only be done when you actually deploy your API. So under your API, got to the 'Resources' tab, use the Actions dropdown. It's in this UI that you'll get the option to create a new stage. If you get warned about not having any integrations, just add a simple action like an HTTP pass through.
So you're effectively deploying before you've built it. I agree with the comments not very intuitive.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With