Skip to content

feat(api-gateway): support timeoutInMillis for http events#673

Open
VirtueMe wants to merge 1 commit intoserverless-operations:masterfrom
BANCS-Norway:feat-651-api-gateway-timeout
Open

feat(api-gateway): support timeoutInMillis for http events#673
VirtueMe wants to merge 1 commit intoserverless-operations:masterfrom
BANCS-Norway:feat-651-api-gateway-timeout

Conversation

@VirtueMe
Copy link

Summary

  • Adds support for timeoutInMillis on individual http events to set the API Gateway integration timeout
  • Adds support for provider.apiGateway.timeoutInMillis as a default for all events
  • Event-level config takes precedence over the provider default

Usage

provider:
  apiGateway:
    timeoutInMillis: 15000 # default for all step function http events

stepFunctions:
  stateMachines:
    hello:
      events:
        - http:
            path: /hello
            method: GET
            timeoutInMillis: 29000 # override per event

Test plan

  • should set TimeoutInMillis when timeoutInMillis is provided
  • should not set TimeoutInMillis when timeoutInMillis is not provided
  • should pass timeoutInMillis from the http event
  • should use provider.apiGateway.timeoutInMillis as default when not set on event
  • should prefer event-level timeoutInMillis over provider default
  • Full test suite passes (432 tests)

Closes #651

🤖 Generated with Claude Code

Add support for configuring API Gateway integration timeout via
timeoutInMillis on individual http events or as a default through
provider.apiGateway.timeoutInMillis. Event-level config takes
precedence over the provider default.

Closes serverless-operations#651

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@zirkelc
Copy link
Collaborator

zirkelc commented Mar 11, 2026

Hey, thanks for the PR! I'm currently on vacation for a few more days, I'll merge and release it as soon as possible!

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 11, 2026

Open in StackBlitz

npm i https://pkg.pr.new/serverless-operations/serverless-step-functions@673

commit: 8e2c562

@VirtueMe
Copy link
Author

Hey, thanks for the PR! I'm currently on vacation for a few more days, I'll merge and release it as soon as possible!

Enjoy your vacaction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API Gateway timeoutInMillis

2 participants