Easy way to debug and externalize logs from CloudWatch when log events are more

  1. Login to AWS Console, look for CloudWatch services
  1. Login to any of the EC2 box launched in the respective region where the lambda runs through Putty or SSH via Terminal
  2. Get the log stream of the log group by using the below command
  1. When you try to execute the command, “aws logs get-log-events” or “aws logs describe-log-streams”. There can be error thrown saying the user role for the EC2 box in which it is run is not having the required access to get or describe events. To avoid that, for the particular role, Go to AWS IAM -> roles -> select the role -> attach policies



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Doyle Wilson

Doyle Wilson


Senior Software Engineer | Solution Designer| Java | Microservices | AWS | Terraform | Spring Boot