2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AWS API Gatewayのdeploymentとstageの位置付けを整理

Posted at

Deployment

  • APIのバージョン。
  • 既存のstageを選ぶか、stageを新規作成してデプロイ。

Stage

  • エンドポイントのバージョン。
  • 1stageに1URLが振られる。(URLのpathの末尾で区別される)
  • 既存のDeploymentDateの一覧からDeploymentをひとつ選択して作成。

DeploymentとStageの位置付け

  • Stageがdeploymentの一覧の中から一つを選択する。(StageのDeployment Historyタブにて)

ややこしいのはdeployment新規作成の時にそれに紐づけられるstageを必ず選択せねばならないこと。つまり、deployment作成時にはそれはいずれかのstageに選択されていなければならない。しかしその後、そのstageに紐づけられるdeploymentを切り替えることで、作成したdeploymentがどのstageにも選択されていない状態が起こりうる。

image.png

補足

あるAPIで最初にDeploymentを行う際には、Deploy API > Deployment stage=[New Stage]
Deploymentが一つもない状態でstageを作成することはできない。

image.png

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?