0
votes

I've been trying to follow the tutorial at https://github.com/amzn/alexa-skills-kit-java/tree/master/samples/src/main/java/helloworld to set up a custom alexa skill. I was able to compile the jar file fine. The problem is whenever I try to create my AWS lambda function I get this screen with no indication of what's wrong. Anyone seen this before?

Error message

2
Did you enter Java code into the console ? Java is a compiled language, you can only upload class files (binaries) or JAR files, not source code.Sébastien Stormacq
I uploaded a compiled jar as the tutorial said to do.Andres
Does your IAM user has enough permission to create lambda function ? Did you retry (to eliminate the unlikely case of transient errors)Sébastien Stormacq
I tried again 2 weeks later and it works now.Andres

2 Answers

0
votes

Did you follow codes' instruction to deploy ? In particular :

  • Go to the the samples/ directory containing pom.xml, and run 'mvn assembly:assembly -DdescriptorId=jar-with-dependencies package'. This will generate a zip file named "alexa-skills-kit-samples-1.0-jar-with-dependencies.jar" in the target directory.

  • Select Code entry type as "Upload a .ZIP file" and then upload the "alexa-skills-kit-samples-1.0-jar-with-dependencies.jar" file from the build directory to Lambda

0
votes

I followed this tutorial https://github.com/amzn/alexa-skills-kit-java/tree/master/samples/src/main/java/helloworld and was able to successfully create a simple custom skill and was able to view my skill in Echo webpage.

My doubt is how do I invoke that skill?I don't have a echo with me