• Register
0 votes

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

Please log in or register to answer this question.

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.6K 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 174 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, 2020 jwilliam 3.9k points
0 votes
1 answer 58 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, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 461 views
Problem : My code works perfectly on my friend's laptop But throws below error on my laptop. &ldquo;Error: a jni error has occurred, please check your installation and try again&rdquo; I have tried running the code on a Eclipse Juno using Java 7. I have also tested it and ... my final year project and I need it to work on my laptop at any case, I will be very grateful to anyone who solves it.
asked Jan 18, 2020 jwilliam 3.9k points
0 votes
1 answer 91 views
Problem : I want to update Orion ContextBroker using the command yum install contextBroker. But unfortunately I am getting the following error: Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again What could be wrong? Any clue?
asked Nov 26, 2019 alecxe 7.5k points
0 votes
1 answer 678 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, 2020 mphil 2.3k points
0 votes
1 answer 387 views
Problem : I want to set up the hello world example with AWS lambda and serving it through the api gateway. I clicked a "Create a Lambda Function", which set up a api gatway and selected a Blank Function option. I added a lambda function found on AWS ... response { "message": "Internal server error" }. And my logs say "Execution failed due to configuration error: Malformed Lambda proxy response".
asked Jan 22, 2020 jwilliam 3.9k points
1 vote
2 answers 407 views
Problem : I am very new to the AWS and the beast. While working on API Gateway to Lambda proxy integration I am facing below error : Execution failed due to configuration error: Invalid permissions on Lambda function I have followed the below given ... on any resource # within the API Gateway "REST API". source_arn = "${aws_api_gateway_deployment.resource_name_of_deployment.execution_arn}/*/*" }
asked Dec 14, 2019 alecxe 7.5k points
0 votes
1 answer 79 views
Problem: I am working on Fancybox for the very first time I am trying to display the inline content (it is a div with the image linked to the new page). My div and image are displayed properly in a modal but if a image is clicked to navigate to a new page then in that case I ... website.com/file/id:64/ext:.png" class="img" /></a></div></div> </li> Can someone help me in fixing my fancybox error.
asked Jul 14, 2020 Raphael Pacheco 4.9k points