question

hasdd avatar image
hasdd asked

Fetch Developer ARN in Lambda Function

Hi there, My Lambda function "ABC" executes some HTTP Request through node.js code. I am using 2 server 1) Production server 2)Testing server In my Developer Account I have create 2 users, Now I want to differentiate between this 2 user in "ABC" Lambda Function node.js code, Means if Developer is user1 who is invoking function "ABC "then call HTTP Request to "production server" and if Developer is user2 who is invoking function "ABC" then call HTTP Request to "testing server". From Developer account I can get unique user ARN Value like this, arn:aws:iam::721195262643:user/user1 arn:aws:iam::121195262643:user/user2 Now how can I get Above user ARN value in Node.js Code????? Suggest Me Some Solution. Thanks
alexa skills kitsubmission testing certification
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Ross@Amazon avatar image
Ross@Amazon answered
A UserID can be obtained from a session object. More information can be found here: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/alexa-skills-kit-interface-reference#session-object.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.