Skip to content

Enable API Gateway logs when creating a GuApiLambda #1935

@emdash-ie

Description

@emdash-ie

I spent a while today debugging an alert for a large percentage of 5XX responses from a cdk-configured GuApiLambda. It turned out the lambda is taking longer than 30 seconds on each invocation, and so the API Gateway is timing out. However, this was a little hard to debug, because the API Gateway logs (as distinct from the lambda logs) were disabled – I was able to turn them on in the web UI, but had to be shown that that was possible.

Would it be possible for those logs to be enabled by default if using the GuApiLambda (and ideally sent to the same log group as the lambda’s logs)? I think it would be helpful for people debugging errors like these in the future.

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