alexa-samples / skill-sample-nodejs-adventure-game

This tool provides an easy to use front-end that allows developers to instantly deploy code for your story, or use the generated code as a starting point for more complex projects.
Apache License 2.0
510 stars 218 forks source link

Region #38

Open Atlas7 opened 7 years ago

Atlas7 commented 7 years ago

No matter how hard I try, I don't seem to be able to get it upload to the "eu-west-1" (Ireland) region - Alexa Skill Kit is available in this region. (I'm on MacOS). (Credential wise seems to be ok).

i.e. I've done all the followings but still no luck:

Whenever I hit the upload button, the log keeps implying it's trying to reach "us-east-1", instead of "eu-west-1". Error log shows this:

Error: Function not found: arn:aws:lambda:us-east-xxxxxxxx:function:myLambdaFunction

(it insists "us-east-1" instead of the "eu-west-1" that I thought I set).

mlota commented 6 years ago

Same problem here - does anyone know of any workarounds?

Update: Ok I found a way to get this working, basically I opened /gulp-tasks/_upload.js and added the region to the opts object passed to the awslambda function:

var opts = {
    profile: config.awsProfileName,
    region: 'eu-west-1'
}

Ran npm start again and the upload is now working fine.