Using SAM file to remove default “Stages” in AWS ApiGateway?

ⅰ亾dé卋堺 提交于 2021-01-29 21:40:42

问题


I'm deploying a serverless application via Visual Studio using SAM file.

At the end of the SAM file I've created a section of :

"Type": "AWS::ApiGateway::Deployment"

Which controls the deployment process :

,"APIGatewayDeploymenta727bb8729": {
      "Type": "AWS::ApiGateway::Deployment",
      "Properties": {
        "RestApiId": "3pb9y46oll",
        "Description": "....",
        "StageName": "Royi"      <-----Notice here
      }
    }
  },...

And Indeed , it creates a stage name : "Royi":

But it also create two default stages named : "Prod & Stage"

Question:

How can I remove those two stages via the SAM file ?

I only want a stage named "Royi".

来源:https://stackoverflow.com/questions/60252530/using-sam-file-to-remove-default-stages-in-aws-apigateway

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!