Articles → AWS → Enable Cloudwatch Logs For The AWS API GatewayEnable Cloudwatch Logs For The AWS API GatewayIn this article, we will enable CloudWatch logs for the AWS API Gateway.Role First, create a role. Select API Gateway as a service and AmazonAPIGatewayPushToCloudWatchLogs as the permission.Provide Permission To The Role To provide the permission, click on the Settings menu at the bottom of the API.A screen will appear where you can specify the role ARN.Click on the Save button to save the setting.Deploy API The next step is to deploy the API.Enable Cloudwatch Logs To enable the CloudWatch logs, click on the Logs/Tracing tab. In the tab, select the CloudWatch Logs as Full Request And Response Logs.Output Browse the API URL and calls gets logged in the CloudWatch.Posted By - Karan Gupta Posted On - Monday, May 15, 2023 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
Query/Feedback