Can't get AWS Lambda function to log (text output) to CloudWatch

后端 未结 15 546
独厮守ぢ
独厮守ぢ 2020-12-13 12:14

I\'m trying to set up a Lambda function that will process a file when it\'s uploaded to an S3 bucket. I need a way to see the output of console.log when I uploa

15条回答
  •  清歌不尽
    2020-12-13 12:31

    Make sure you have the full path of your "Existing role" in your lambda function "Configuration":

    Role: Choose an existing role Existing Role: service-role/yourRoleName

    For some reason, typing only yourRoleName will work for some services (like SES) but not for CloudWatch.

    Also, you may try creating a new role instead of using an existing one. This will create the role with the proper configuration (hopefully).

提交回复
热议问题