From 9d567566f96914bf0772ea73fa03a9d4ef288dd2 Mon Sep 17 00:00:00 2001 From: Deepak HB Date: Mon, 19 Oct 2020 23:04:01 +0100 Subject: [PATCH] Fix the example function to run. --- example/service/handler.js | 4 ++-- example/service/localstack_endpoints.json | 18 +----------------- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/example/service/handler.js b/example/service/handler.js index f3f54b9..d9f8c94 100644 --- a/example/service/handler.js +++ b/example/service/handler.js @@ -1,7 +1,7 @@ 'use strict'; module.exports.hello = (event, context, callback) => { - process.stdout.write(event.Records[0].EventSource); - process.stdout.write(event.Records[0].Sns.Message); +//process.stdout.write(event.Records[0].EventSource); +// process.stdout.write(event.Records[0].Sns.Message); callback(null, { message: 'Hello from SNS!', event }); }; diff --git a/example/service/localstack_endpoints.json b/example/service/localstack_endpoints.json index f08a020..0967ef4 100644 --- a/example/service/localstack_endpoints.json +++ b/example/service/localstack_endpoints.json @@ -1,17 +1 @@ -{ - "APIGateway": "http://localhost:4567", - "CloudFormation": "http://localhost:4581", - "CloudWatch":"http://localhost:4582", - "DynamoDB": "http://localhost:4569", - "DynamoDBStreams": "http://localhost:4570", - "ES": "http://localhost:4571", - "Firehose": "http://localhost:4573", - "Kinesis": "http://localhost:4568", - "Lambda": "http://localhost:4574", - "Redshift": "http://localhost:4577", - "Route53": "http://localhost:4580", - "S3": "http://localhost:4572", - "SES": "http://localhost:4579", - "SNS": "http://localhost:4575", - "SQS": "http://localhost:4576" -} +{}