Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable Cloudwatch Logs for API Gateway using Cloudformation?

Hi I'm trying to enable Cloudwatch logs in API Gateway using Cloudformation. However, I do not find the the documentation to do so. All I can find is Logginglevel in the official documentation which doesn't seem to be the solution.

For context I'm looking to achieve this using Cloudformation but don't know how to. Please help.

Done Manually here from console

like image 903
Red Bottle Avatar asked Apr 10 '26 03:04

Red Bottle


1 Answers

These log settings are set using MethodSetting:

  • DataTraceEnabled - is for "Log full requests..."
  • LoggingLevel is for "Log level"
  • MetricsEnabled is for "Enable detailed CloudWatch metrics"
like image 140
Marcin Avatar answered Apr 12 '26 18:04

Marcin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!