Articles → AWS → Enable Cloudwatch Logs For The AWS API Gateway

Enable Cloudwatch Logs For The AWS API Gateway






Role




Picture showing creating the role for the API gateway
Click to Enlarge

Picture showing adding the AmazonAPIGatewayPushToCloudWatchLogs permission to the role
Click to Enlarge


Provide Permission To The Role




Picture showing the settings menu in the API gateway
Click to Enlarge



Picture showing adding the role for enabling logging in the CloudWatch
Click to Enlarge




Deploy API





Enable Cloudwatch Logs




Picture showing the CloudWatch settings in the Logs/Tracing tab
Click to Enlarge


Output




Picture showing the logs in CloudWatch
Click to Enlarge




Posted By  -  Karan Gupta
 
Posted On  -  Monday, May 15, 2023

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250