You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While chalice can support retrieving logs from lambda via the chalice logs command, it's not possible to retrieve logs for API gateway. Additionally, creating a lambda function automatically creates a log group for you so there's nothing you need to do to configure logs.
It would be helpful to also have this same functionality for API gateway. This needs to be explicitly configured when creating your rest API. The other issue I remember running into is that you set a role that API gateway uses to push logs to cloudwatch, but this role is for your entire account. It's not clear to what extent chalice should set this up for you. You need a role configured or else you don't get APIG logs, but it may already be configured. We probably will need to add a few config options for the various use cases.
While chalice can support retrieving logs from lambda via the
chalice logs
command, it's not possible to retrieve logs for API gateway. Additionally, creating a lambda function automatically creates a log group for you so there's nothing you need to do to configure logs.It would be helpful to also have this same functionality for API gateway. This needs to be explicitly configured when creating your rest API. The other issue I remember running into is that you set a role that API gateway uses to push logs to cloudwatch, but this role is for your entire account. It's not clear to what extent chalice should set this up for you. You need a role configured or else you don't get APIG logs, but it may already be configured. We probably will need to add a few config options for the various use cases.
Originally requested in #841 (comment)
The text was updated successfully, but these errors were encountered: