Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Region #38

Open
Atlas7 opened this issue Jun 19, 2017 · 1 comment
Open

Region #38

Atlas7 opened this issue Jun 19, 2017 · 1 comment

Comments

@Atlas7
Copy link

Atlas7 commented Jun 19, 2017

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

@mlota
Copy link

mlota commented Jul 15, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants