问题
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