{"action":"created","issue":{"url":"https://api.github.com/repos/motdotla/node-lambda/issues/98","repository_url":"https://api.github.com/repos/motdotla/node-lambda","labels_url":"https://api.github.com/repos/motdotla/node-lambda/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/motdotla/node-lambda/issues/98/comments","events_url":"https://api.github.com/repos/motdotla/node-lambda/issues/98/events","html_url":"https://github.com/motdotla/node-lambda/issues/98","id":153225800,"number":98,"title":"Using AWS IAM role/user in the lambda","user":{"login":"romain-nio","id":6795930,"avatar_url":"https://avatars.githubusercontent.com/u/6795930?v=3","gravatar_id":"","url":"https://api.github.com/users/romain-nio","html_url":"https://github.com/romain-nio","followers_url":"https://api.github.com/users/romain-nio/followers","following_url":"https://api.github.com/users/romain-nio/following{/other_user}","gists_url":"https://api.github.com/users/romain-nio/gists{/gist_id}","starred_url":"https://api.github.com/users/romain-nio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romain-nio/subscriptions","organizations_url":"https://api.github.com/users/romain-nio/orgs","repos_url":"https://api.github.com/users/romain-nio/repos","events_url":"https://api.github.com/users/romain-nio/events{/privacy}","received_events_url":"https://api.github.com/users/romain-nio/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-05T12:53:37Z","updated_at":"2016-05-05T13:54:22Z","closed_at":"2016-05-05T13:40:34Z","body":"Hi,\r\n\r\nThanks so much for your tool, I love it :)\r\n\r\nJust one question about lambda functions requesting other AWS services where authentification is needed (for example cloudsearch with 'aws-sdk\" node.js module). Is-it possible to directly specify to node-lambda the IAM role to use in the \"run\" mode ? I tried to add it to context.json whitout any success :)\r\n\r\nIf I add the line below in my script it works, but I'm looking for a way to not add it to the JS code :)\r\n`AWS.config.update({region:'eu-west-1',accessKeyId: 'XXXX', secretAccessKey: 'XXXX'});\r\n`\r\nThanks!\r\nRomain.\r\n"},"comment":{"url":"https://api.github.com/repos/motdotla/node-lambda/issues/comments/217160510","html_url":"https://github.com/motdotla/node-lambda/issues/98#issuecomment-217160510","issue_url":"https://api.github.com/repos/motdotla/node-lambda/issues/98","id":217160510,"user":{"login":"DeviaVir","id":777823,"avatar_url":"https://avatars.githubusercontent.com/u/777823?v=3","gravatar_id":"","url":"https://api.github.com/users/DeviaVir","html_url":"https://github.com/DeviaVir","followers_url":"https://api.github.com/users/DeviaVir/followers","following_url":"https://api.github.com/users/DeviaVir/following{/other_user}","gists_url":"https://api.github.com/users/DeviaVir/gists{/gist_id}","starred_url":"https://api.github.com/users/DeviaVir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeviaVir/subscriptions","organizations_url":"https://api.github.com/users/DeviaVir/orgs","repos_url":"https://api.github.com/users/DeviaVir/repos","events_url":"https://api.github.com/users/DeviaVir/events{/privacy}","received_events_url":"https://api.github.com/users/DeviaVir/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T13:54:22Z","updated_at":"2016-05-05T13:54:22Z","body":"Yeah, that's the way! Let us know if we can help with anything else, good luck!"}}