{"action":"created","issue":{"url":"https://api.github.com/repos/apex/up/issues/650","repository_url":"https://api.github.com/repos/apex/up","labels_url":"https://api.github.com/repos/apex/up/issues/650/labels{/name}","comments_url":"https://api.github.com/repos/apex/up/issues/650/comments","events_url":"https://api.github.com/repos/apex/up/issues/650/events","html_url":"https://github.com/apex/up/issues/650","id":316498607,"number":650,"title":"How to invoke Up function inside a legacy Lambda?","user":{"login":"huygn","id":10569203,"avatar_url":"https://avatars3.githubusercontent.com/u/10569203?v=4","gravatar_id":"","url":"https://api.github.com/users/huygn","html_url":"https://github.com/huygn","followers_url":"https://api.github.com/users/huygn/followers","following_url":"https://api.github.com/users/huygn/following{/other_user}","gists_url":"https://api.github.com/users/huygn/gists{/gist_id}","starred_url":"https://api.github.com/users/huygn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huygn/subscriptions","organizations_url":"https://api.github.com/users/huygn/orgs","repos_url":"https://api.github.com/users/huygn/repos","events_url":"https://api.github.com/users/huygn/events{/privacy}","received_events_url":"https://api.github.com/users/huygn/received_events","type":"User","site_admin":false},"labels":[{"id":630923037,"url":"https://api.github.com/repos/apex/up/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-21T14:58:31Z","updated_at":"2018-04-21T18:49:12Z","closed_at":"2018-04-21T18:49:12Z","author_association":"NONE","body":"## Prerequisites\r\n\r\n* [x] I am running the latest version. (`up upgrade`)\r\n* [x] I searched to see if the issue already exists.\r\n* [x] I inspected the verbose debug output with the `-v, --verbose` flag.\r\n* [ ] Are you an Up Pro subscriber?\r\n\r\n## Description\r\n\r\nI'm trying to invoke my Up function inside a legacy Lambda function:\r\n\r\n```go\r\nvar invokeInp lambda.InvokeInput\r\ninvokeInp.SetFunctionName(\"up-function\")\r\ninvokeInp.SetPayload(...)\r\n// ... what else?\r\n\r\nlambdaS.InvokeWithContext(ctx, &invokeInp)\r\n```\r\n\r\nSpecifically I would like to invoke `POST https://<up-function-url>/staging/users`, is it possible?\r\n\r\nI'd assume for Up case we need to pass some context to `InvokeInput` but i can't figure it out."},"comment":{"url":"https://api.github.com/repos/apex/up/issues/comments/383319881","html_url":"https://github.com/apex/up/issues/650#issuecomment-383319881","issue_url":"https://api.github.com/repos/apex/up/issues/650","id":383319881,"user":{"login":"huygn","id":10569203,"avatar_url":"https://avatars3.githubusercontent.com/u/10569203?v=4","gravatar_id":"","url":"https://api.github.com/users/huygn","html_url":"https://github.com/huygn","followers_url":"https://api.github.com/users/huygn/followers","following_url":"https://api.github.com/users/huygn/following{/other_user}","gists_url":"https://api.github.com/users/huygn/gists{/gist_id}","starred_url":"https://api.github.com/users/huygn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huygn/subscriptions","organizations_url":"https://api.github.com/users/huygn/orgs","repos_url":"https://api.github.com/users/huygn/repos","events_url":"https://api.github.com/users/huygn/events{/privacy}","received_events_url":"https://api.github.com/users/huygn/received_events","type":"User","site_admin":false},"created_at":"2018-04-21T18:49:12Z","updated_at":"2018-04-21T18:49:12Z","author_association":"NONE","body":"Thanks for clarify :+1:"}}
{"actor":{"display_login":"huygn"}}