Skip to content

Commit 1d1c1c2

Browse files
author
Rob McCauley
committed
updates
1 parent 01bea0a commit 1d1c1c2

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

aws/Amazon-DynamoDB/read/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// alexa-cookbook sample code
1+
// alexa-cookbook sample code
22

33
// There are three sections, Text Strings, Skill Code, and Helper Function(s).
44
// You can copy and paste the entire file contents as the code for a new Lambda function,
@@ -8,7 +8,7 @@
88
// 1. Text strings =====================================================================================================
99
// Modify these strings and messages to change the behavior of your Lambda function
1010

11-
var AWSregion = 'eu-west-1'; // us-east-1
11+
var AWSregion = 'us-east-1'; // us-east-1
1212

1313
var params = {
1414
TableName: 'yesno',

aws/Amazon-IOT/update-shadow/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
// Modify these strings and messages to change the behavior of your Lambda function
1010

1111
var config = {};
12-
config.IOT_BROKER_ENDPOINT = "a3npzlqqmmzqo.iot.eu-west-1.amazonaws.com"; // also called the REST API endpoint
13-
config.IOT_BROKER_REGION = "eu-west-1"; // corresponds to the Ireland Region. Use ```us-east-1``` instead for the N. Virginia region
12+
config.IOT_BROKER_ENDPOINT = "a3npzlqqmmzqo.iot.us-east-1.amazonaws.com"; // also called the REST API endpoint
13+
config.IOT_BROKER_REGION = "us-east-1"; // eu-west-1 corresponds to the Ireland Region. Use us-east-1 for the N. Virginia region
1414
config.IOT_THING_NAME = "waterPump";
1515

1616
var SkillMessagesUS = {

aws/Amazon-IOT/update-shadow/src/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"repository": "my repository",
77
"main": "index.js",
88
"scripts": {
9-
"invoke": "aws lambda invoke --function-name 'HelloWorld' --payload fileb://../tests/events/alexa-start-session.json ../tests/out.txt && cat ../tests/out.txt",
9+
"invoke": "aws lambda invoke --function-name 'CityBrowser' --payload fileb://../tests/events/alexa-start-session.json ../tests/out.txt && cat ../tests/out.txt",
1010
"test": "node ../tests/test.js",
1111
"deploy": "npm run zip && npm run upload",
12-
"upload": "aws lambda update-function-code --function-name 'HelloWorld' --zip-file fileb://../index.zip",
12+
"upload": "aws lambda update-function-code --function-name 'CityBrowser' --zip-file fileb://../index.zip",
1313
"zip": "zip -r ../index.zip . -x 'package.json' -x '*.git*' "
1414
},
1515
"author": "me",

aws/Amazon-IOT/webapp-thing/js/aws_config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// 1. Login to AWS IOT console, and select a Region at the top-right
44
// such as Ireland (eu-west-1) or N. Virginia (us-east-1)
55

6-
const REGION = 'eu-west-1';
6+
const REGION = 'us-east-1'; // eu-west-1
77

88
// 2. Click on Registry, and add a new Thing, such as waterPump
99

@@ -12,7 +12,7 @@ const ThingName = 'waterPump';
1212
const SubscribeTopic = '$aws/things/' + ThingName + '/shadow/update/accepted';
1313

1414
// 3. Click on the Interact menu item, to reveal the API Endpoint:
15-
const mqttEndpoint = "a3npzlqqmmzqo.iot.eu-west-1.amazonaws.com";
15+
const mqttEndpoint = "a3npzlqqmmzqo.iot.us-east-1.amazonaws.com";
1616

1717

1818
// 4. Login to the AWS Cognito console
@@ -30,4 +30,4 @@ const mqttEndpoint = "a3npzlqqmmzqo.iot.eu-west-1.amazonaws.com";
3030
//
3131

3232
// Cognito Identity Pool ID
33-
const IdentityPoolId = 'eu-west-1:c2489a27-b975-4239-8c6a-472e080b0fb0';
33+
const IdentityPoolId = 'us-east-1:583dd84a-7792-49a6-9ce5-5624f80378e7';

aws/Amazon-SES/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// 1. Text strings =====================================================================================================
99
// Modify these strings and messages to change the behavior of your Lambda function
1010

11-
var AWSregion = 'eu-west-1'; // us-east-1
11+
var AWSregion = 'us-east-1'; // eu-west-1
1212

1313
var subject = 'Hello email for you' ;
1414
var bodyText = 'Hello! \n'

aws/Amazon-SNS/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// 1. Text strings =====================================================================================================
99
// Modify these strings and messages to change the behavior of your Lambda function
1010

11-
var AWSregion = 'eu-west-1'; // us-east-1
11+
var AWSregion = 'us-east-1'; // eu-west-1
1212

1313
const mobileNumber = '+1508259846'; // be sure to change this to YOUR mobile number
1414

aws/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This Node module is automatically included and available to all AWS Lambda funct
1616
You can further configure the AWS connection via the Config. Certain functions require the region to be set.
1717
Alexa skill developers will likely be using AWS in one of two possible regions: ```eu-west-1``` or ```us-east-1```
1818
```
19-
AWS.config.update({region: 'eu-west-1'}); // us-east-1
19+
AWS.config.update({region: 'us-east-1'}); // eu-west-1
2020
2121
```
2222

labs/HelloWorld/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var handlers = {
1717
},
1818

1919
'MyIntent': function () {
20-
this.emit(':tell', 'Hello World from Alexa Germany');
20+
this.emit(':tell', 'Hello World from Alexa');
2121
}
2222
};
2323

0 commit comments

Comments
 (0)