Skip to content

API Gateway timeoutInMillis #651

Open
@danhnguyeen

Description

@danhnguyeen

Hello there,
I would like to change the timeout for API Gateway integration.
In serverless, I can change this by setting the timeoutInMillis property in the apiGateway configuration.

provider:
  apiGateway:
    timeoutInMillis: 10000 # Default timeout of 10 seconds for all endpoints
functions:
  fetch:
    handler: handler.hello
    events:
      - http:
          path: /posts/{id}
          method: get
  create:
    handler: handler.bye
    events:
      - http:
          path: /posts
          method: post
          timeoutInMillis: 40000 #

But it seems this configuration doesn't work with Step Functions.
In Step Functions, I tried to change like this but it didn't work.

name: hello
type: EXPRESS
events:
  - http:
      path: /hello
      method: GET
      cors: true
      action: StartSyncExecution
      timeoutInMillis: 119000

Could you please help me on this? Of course, I can change it directly on the API Gateway console. But it’s not a best practice.
Thanks a lot

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions