Skip to content

HttpApi did not apply changes during a stack update. #1499

@brysontyrrell

Description

@brysontyrrell

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:

  1. Create an HTTP API with multiple Lambdas/routes. Deploy it.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions