skill-sample-nodejs-adventure-game icon indicating copy to clipboard operation
skill-sample-nodejs-adventure-game copied to clipboard

Region

Open Atlas7 opened this issue 8 years ago • 1 comments

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:

  • adding "region" = "eu-west-1"and "dynamoRegion" = "eu-west-1" in the src/skill/models/config.json. In this file I've also included the eu-west-1 lambda application ID. i.e. "applicationId" : "xxxxxxxxxxxxxx"
  • adding environmental variable AWS_REGION=eu-west-1 and AWS_DEFAULT_REGION=eu-west-1.
  • ensuring ~/.aws/credentials contains key and secret key (from IAM), and ~/.aws/config contains region = eu-west-1.

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).

Atlas7 avatar Jun 19 '17 20:06 Atlas7

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.

mlota avatar Jul 15 '17 14:07 mlota