skill-sample-nodejs-adventure-game
skill-sample-nodejs-adventure-game copied to clipboard
Region
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 thesrc/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-1andAWS_DEFAULT_REGION=eu-west-1. - ensuring
~/.aws/credentialscontains key and secret key (from IAM), and~/.aws/configcontainsregion = 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).
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.