-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
Description:
I'm working on switching over one of my Rest APIs in a service to HTTP API. I had it initially deployed with three routes each with their own Lambda function. I then pushed an update that condensed those three Lambdas to a single one with three events attached to it for the route.
The HTTP API correctly removed the old route-integrations but then didn't apply any of the new ones. The API and the Lambdas were all created, but none of the integrations were.
When view the $default stage in the console I could see a message that the deployment failed as there were no routes configured, but this deployment failure within API Gateway did not report back to CloudFormation where it reported everything had deployed successfully.
Deleting and re-creating the CloudFormation stack brought up the HTTP API correctly with all of the route-integrations configured.
Steps to reproduce the issue:
- Create an HTTP API with multiple Lambdas/routes. Deploy it.
- Update the HTTP API to use a single Lambda with all three routes attached in the Events. Deploy the change.
Observed result:
The HTTP API loses all routes and has no integrations configured.
Expected result:
The HTTP API removes the old route-integrations and correctly configures the new ones.