Why can't I see CloudWatch Logs for Lambda function?

Cecilia

I wanted to be able to monitor logs in Cloudwatch when my Lambda being executed, currently there is a section on the top of Lambda console:

enter image description here

It's showing me any error I got when the Lambda is being executed, but if I click on logs, it will direct me to CloudWatch and showing me log group does not exist, does anyone know why and how I'll be able to see the logs in Cloudwatch? (I thought it'll be automatical...)

John Rotenstein

Your AWS Lambda function needs the following permissions to access CloudWatch Logs:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "logs:CreateLogGroup",
                "logs:CreateLogStream",
                "logs:PutLogEvents"
            ],
            "Resource": "*"
        }
    ]
}

This will give it permission to create a log group and store events in the log group.

The easiest way to assign this permission is by adding the AWSLambdaBasicExecutionRole managed policy to the IAM Role being used by your Lambda function.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Why can't I see gnome extensions?

分類Dev

Why can't I see the keys of an Error object?

分類Dev

Why can't I see remote video in my WebRTC app?

分類Dev

Why i can't see new branch in tortoiseHG?

分類Dev

How can I see the aggregated logs for a Spark standalone cluster

分類Dev

Why I can't call a lambda expression without parenthesis?

分類Dev

Why can't I assign to a variable a JSON value that I can see in Debug mode?

分類Dev

why can't see regression line?

分類Dev

Why can I see the password of a PasswordBox in Snoop?

分類Dev

Why can't I see my USB drive during Windows 7 installation?

分類Dev

Why can't I call class function inside addEventListener

分類Dev

why can't I pass companion object to a function

分類Dev

Why can't I call a generic function with a union type parameter?

分類Dev

Why can't I use "." as a delimiter in split() function?

分類Dev

What happens if I have 2 CloudWatch events that trigger the same lambda function at the same time?

分類Dev

Why can't I assign to an lambda-syntax read-only property in the constructor?

分類Dev

Why can't I access the model's property via the lambda expression parameter?

分類Dev

Why can I extend an arrow function if I can't access its output?

分類Dev

Why can't TypeScript see that a nested value cannot be undefined?

分類Dev

Why is my javascript function not being invoked for simple MVC tutorial? Why can't I debug either?

分類Dev

Where can I see the next time the function starts?

分類Dev

Can you see where my unmatched block nesting is wrong? I just can't seem to see it? MASM

分類Dev

RSelenium: Can't see Browser as I run my Code

分類Dev

Why can't I use a ternary operator and arrow function in this way in JSX?

分類Dev

Why can't I reference a list of a child class in a function expecting a list of the parent class?

分類Dev

Weird examples in javascript, why I can't reassign a global variable's value through a function's parameter?

分類Dev

Why can't I access my JavaScript array by index outside of the d3 then function?

分類Dev

Why can't I use ibrowse? -- Undefined function: :ibrowse.start/0

分類Dev

Why can't I access my private variable inside a function in PHP?

Related 関連記事

  1. 1

    Why can't I see gnome extensions?

  2. 2

    Why can't I see the keys of an Error object?

  3. 3

    Why can't I see remote video in my WebRTC app?

  4. 4

    Why i can't see new branch in tortoiseHG?

  5. 5

    How can I see the aggregated logs for a Spark standalone cluster

  6. 6

    Why I can't call a lambda expression without parenthesis?

  7. 7

    Why can't I assign to a variable a JSON value that I can see in Debug mode?

  8. 8

    why can't see regression line?

  9. 9

    Why can I see the password of a PasswordBox in Snoop?

  10. 10

    Why can't I see my USB drive during Windows 7 installation?

  11. 11

    Why can't I call class function inside addEventListener

  12. 12

    why can't I pass companion object to a function

  13. 13

    Why can't I call a generic function with a union type parameter?

  14. 14

    Why can't I use "." as a delimiter in split() function?

  15. 15

    What happens if I have 2 CloudWatch events that trigger the same lambda function at the same time?

  16. 16

    Why can't I assign to an lambda-syntax read-only property in the constructor?

  17. 17

    Why can't I access the model's property via the lambda expression parameter?

  18. 18

    Why can I extend an arrow function if I can't access its output?

  19. 19

    Why can't TypeScript see that a nested value cannot be undefined?

  20. 20

    Why is my javascript function not being invoked for simple MVC tutorial? Why can't I debug either?

  21. 21

    Where can I see the next time the function starts?

  22. 22

    Can you see where my unmatched block nesting is wrong? I just can't seem to see it? MASM

  23. 23

    RSelenium: Can't see Browser as I run my Code

  24. 24

    Why can't I use a ternary operator and arrow function in this way in JSX?

  25. 25

    Why can't I reference a list of a child class in a function expecting a list of the parent class?

  26. 26

    Weird examples in javascript, why I can't reassign a global variable's value through a function's parameter?

  27. 27

    Why can't I access my JavaScript array by index outside of the d3 then function?

  28. 28

    Why can't I use ibrowse? -- Undefined function: :ibrowse.start/0

  29. 29

    Why can't I access my private variable inside a function in PHP?

ホットタグ

アーカイブ