{"action":"opened","issue":{"url":"https://api.github.com/repos/mapbox/dynamodb-replicator/issues/59","labels_url":"https://api.github.com/repos/mapbox/dynamodb-replicator/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/dynamodb-replicator/issues/59/comments","events_url":"https://api.github.com/repos/mapbox/dynamodb-replicator/issues/59/events","html_url":"https://github.com/mapbox/dynamodb-replicator/issues/59","id":120380790,"number":59,"title":"Trouble setting up the Lambda Function","user":{"login":"AdrianMW","id":3415487,"avatar_url":"https://avatars.githubusercontent.com/u/3415487?v=3","gravatar_id":"","url":"https://api.github.com/users/AdrianMW","html_url":"https://github.com/AdrianMW","followers_url":"https://api.github.com/users/AdrianMW/followers","following_url":"https://api.github.com/users/AdrianMW/following{/other_user}","gists_url":"https://api.github.com/users/AdrianMW/gists{/gist_id}","starred_url":"https://api.github.com/users/AdrianMW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdrianMW/subscriptions","organizations_url":"https://api.github.com/users/AdrianMW/orgs","repos_url":"https://api.github.com/users/AdrianMW/repos","events_url":"https://api.github.com/users/AdrianMW/events{/privacy}","received_events_url":"https://api.github.com/users/AdrianMW/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-04T11:15:09Z","updated_at":"2015-12-04T11:15:09Z","closed_at":null,"body":"Hey,\r\n\r\nThanks for open sourcing this great resource. \r\n\r\nI have been trying to set it up but I have the error below when setting the replicator as a Lambda function.  \r\n\r\nWould you be able to take a look and see if its something obvious :-)\r\n\r\nI have manually set up the following Environmental variables like so:\r\nprocess.env.ReplicaTable = \"testTableReplica\",\r\nprocess.env.ReplicaRegion = \"us-west-2\"\r\nprocess.env.ReplicaEndpoint = \"https://dynamodb.us-west-2.amazonaws.com\"\r\n\r\nAre there any others I have missed?\r\n\r\nI call index.replicate as the function name\r\n\r\nI am looking into using Streambot for real deployment which looks sweet as it removes the configuration from the code entirely.  I figured the best way was to get basic example up and running first, then translate that into the streambot js\r\n\r\n```\r\n2015-12-04T09:16:14.357Z\t8ff15f9e-ca79-478b-9794-1e528a76d52a\t[failed-request] request-id: undefined | id-2: undefined | params:\r\n{\r\n    \"RequestItems\": {\r\n        \"testTableReplica\": [\r\n            {\r\n                \"PutRequest\": {\r\n                    \"Item\": {\r\n                        \"Id\": {\r\n                            \"S\": \"ddddddd\"\r\n                        }\r\n                    }\r\n                }\r\n            },\r\n            {\r\n                \"PutRequest\": {\r\n                    \"Item\": {\r\n                        \"Id\": {\r\n                            \"S\": \"hjhgfhgfhg\"\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n        ]\r\n    }\r\n}\r\n```\r\n\r\nCheers\r\nAdrian\r\n"}}