I defined a skill model using Interaction Model Builder Beta on Amazon developer console. I have also defined a simple lambda function using AWS Lambda;
'use strict';
console.log('Loading function');
exports.handler = (event, context, callback) => {
console.log('Received event:', JSON.stringify(event, null, 2));
callback(null, "Hello world");
};
In the testing part I enter a utterance, I can see a JSON request being created but the response is :
The remote endpoint could not be called, or the response it returned was invalid.
I took the request JSON and created a test for my function in AWS Lambda. The test passes successfully and returns "hello world" for the request.
The trigger for my function is "Alexa Skills Kit". The function logs arent showing anything.
Any idea why it doesnt work? Is there some sort of authentication issue? Do I need to flick a switch somewhere?
The ARN address I use looks like this is arn:aws:lambda:eu-west-1:481045208193:function:eventCount.