17
17

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 1 year has passed since last update.

AWS SAMのデプロイ時に不要な「Stage」が作成されてしまう問題について

Posted at

ちょっとハマったので解決策を残しておきます。

cloudformationでテンプレートからAPI gatewayをデプロイした際に、
以下の様に、意図しない「Stage」が作成されてしまうバグがあるようです。

image.png

調べたところ、githubのissuesに解決策が記載されていました。
OpenApiVersionにバージョンを指定すれば回避できるそう。

##解決策

templateに以下を記載する。

Globals:
  Api:
    OpenApiVersion: 3.0.3

##参考

17
17
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
17
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?