0
votes

I am new to developing alexa skills, and I wanted to do some logging to get information on what's going on.

I'm using Alexa Developers Console to create a simple Hello World skill, then I added a console.log(speakOutput); to the response.

I test the skill on the emulator and then head to the "Logs: Amazon CloudWatch" link. When I enter the cloudwatch, I get an error: Error on cloudwatch

Also, if I try navigating by any of the menus I get permission errors. I know the only solution I found on the internet was to give execution permissions to the lambda function, but on the account I'm logged in when I click the link I don't have permissions to do that.

User in cloudwatch

2

2 Answers

1
votes

Sometimes you can end up timing out of the developer console. Have you tried logging out of the developer.amazon.com console, then logging back in, opening your skill editor tab, and trying the Cloudwatch link again? You just may need some cookies refreshed.

0
votes

The user you're logged in as does not have access to CloudWatch logs.

You must grant this user permissions via IAM to read cloudwatch log streams.

There is a ready made policy named CloudWatchLogsReadOnlyAccess you can attached for this read only access.