Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to create a stage in AWS API Gateway

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?

enter image description here

like image 355
mko Avatar asked Sep 06 '17 10:09

mko


People also ask

How do I create a stage in API gateway?

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.

What is stage variable in AWS API gateway?

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.

How do I clear API gateway stages?

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.


2 Answers

This happens when you don't have any deployment for you API. You could deploy your API and create new stage.

like image 162
Zoey Sun Avatar answered Sep 26 '22 07:09

Zoey Sun


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.

like image 29
gb2d Avatar answered Sep 25 '22 07:09

gb2d