• Register
0 votes
122 views

Problem :

Whenever I try to go to my Logs page the following error shows:

“There was an error loading Log Streams. Please try again by refreshing this page.”

The problem is that there is another function which is identical except my code which is creating the log files no problem.

Any suggestions to resolve my issue?

6 5 3
7,540 points

1 Answer

0 votes

Solution :

Please ensure that your Lambda's Execution Role has the Policy that allows the writing to CloudWatch Logs from the Lambda.

IAM console -> 'Roles' -> < your Lambda's role > -> 'Permissions' tab -> 'Permissions policies' accordion

Try to ensure that there is the Policy listed that has the parameters set like below :

· 'For Service': "CloudWatch Logs"

· 'For Access level': includes at least the "Write"

· 'For Resource': your Lambda should not be excluded it should not be set to another specific Lambda, or any another directory of Lambdas, or any another resource type.

· 'For Request condition': Should not preclude the context of the given Lambda execution

An example of the "AWS managed policy" that should meet these requirements the out-of-the-box, being that it is AWS-managed is the "AWSLambdaBasicExecutionRole". It has below parameters:

· 'For Service': "CloudWatch Logs"

· 'For Access level': "Limited: Write"

· 'For Resource': "All resources"

· 'For Request condition': "None"

If the Role does not have above policy already, either need to add the new one or need to edit and existing one to have your requirements listed here - then your error must be resolved.

9 7 4
38,600 points

Related questions

0 votes
2 answers 1.2K views
1.2K views
Problem : I am getting following error login error: there is an error in logging you into this application. please try again later.
asked Nov 16, 2019 peterlaw 6.9k points
0 votes
1 answer 141 views
141 views
Problem : While doing the drupal 6 to 7 upgrade I am facing a not so helpful message "The website encountered an unexpected error. Please try again later." everytime I go to the certain pages. example) /admin/config What is a best way to find out what is causing ... it? All I can think of right now is to start disabling the contributed modules until that the page works or looking through a logs.
asked Jan 21 jwilliam 3.9k points
0 votes
1 answer 8 views
8 views
Problem: I am very desperately trying to install the modules using node.js but it always fails while getting the packages with npm. I was logged in as Administrator and then used powershell/cmd with a "run as administrator". I also had problems with a registry so I ... error: Npm ERR! Please try running this command again as root/Administrator. Can someone help me in fixing my above NPM error.
asked Aug 31 Raphael Pacheco 4.9k points
0 votes
1 answer 416 views
416 views
Problem : I am new to laravel. I recently installed laravel homestead and it was running using the powershell. But now it has stopped working completely. I had suspended the vagrant and turned off my box. Now it is only showing me below error: ... (extended info not available) VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 493 of file VBoxManageModifyVM.cpp
asked Feb 24 mphil 2.3k points