3 Answers
- Newest
- Most votes
- Most comments
0
Hi
Thank you for you answer!
So I modified my 'AWS::ApiGateway::Deployment' to this:
ApiDeployment:
Type: AWS::ApiGateway::Deployment
Properties:
RestApiId: !Ref Api
StageName: prod
But now during the update I get this error when CloudFormation tries to update the Deployment:
Resource handler returned message: "null" (RequestToken: <TOKEN>, HandlerErrorCode: InternalFailure)
As it was not too descriptive I tried to recreate the whole stack, there I got this more verbose error message when it tries to create the Deployment:
Resource handler returned message: "Stage already exists (Service: ApiGateway, Status Code: 409, Request ID: <REQUEST_ID>, Extended Request ID: null)" (RequestToken: <TOKEN>, HandlerErrorCode: AlreadyExists)
I tried to remove the 'StageName: prod' from the AWS::ApiGateway::Stage definition, but the simple update was failing that way too, so I recreated the whole stack again. This resulted that now I have two stages (I kinda expected that) but on update none of the two will be updated with the new enpoint
answered 3 years ago
0
Do anyone has any idea how to solve this?
Or maybe this is something that is not supported by the API Gateway?
answered 3 years ago
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 months ago