3 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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
répondu il y a 2 ans
0
Do anyone has any idea how to solve this?
Or maybe this is something that is not supported by the API Gateway?
répondu il y a 2 ans
Contenus pertinents
- demandé il y a 6 mois
- demandé il y a 10 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans