LoginSignup
3
2

More than 1 year has passed since last update.

AWS SAMで意図しないAPIGatewayのステージ(名前:Stage)がデプロイされる不具合

Posted at

AWS SAM を用いて API Gateway リソースを作成した際、
設定していない Stage という名称のステージが作成される現象が発生しました。

これはSAM CLIの不具合で以下のGitHub Issueに問題が上がっています。

SAM Creates stage named "Stage" by default? · Issue #191 · aws/serverless-application-model
https://github.com/aws/serverless-application-model/issues/191

■回避策
API Gateway REST API リソースの OpenApiVersion を '2.0' と指定する。

Globals:
  Api:
    OpenApiVersion: '2.0'
3
2
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
3
2