{"id":23330468,"url":"https://github.com/iopipe/lambda-requestbin","last_synced_at":"2025-08-23T00:31:03.679Z","repository":{"id":31186395,"uuid":"127151509","full_name":"iopipe/lambda-requestbin","owner":"iopipe","description":"RequestBin service using AWS Lambda","archived":false,"fork":false,"pushed_at":"2022-12-22T07:38:57.000Z","size":158,"stargazers_count":4,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-09T22:03:30.317Z","etag":null,"topics":["aws-lambda","iopipe-labs","labs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iopipe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-28T14:19:53.000Z","updated_at":"2021-04-20T20:39:11.000Z","dependencies_parsed_at":"2023-01-14T18:30:50.630Z","dependency_job_id":null,"html_url":"https://github.com/iopipe/lambda-requestbin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iopipe%2Flambda-requestbin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iopipe%2Flambda-requestbin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iopipe%2Flambda-requestbin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iopipe%2Flambda-requestbin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iopipe","download_url":"https://codeload.github.com/iopipe/lambda-requestbin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230650823,"owners_count":18259321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-lambda","iopipe-labs","labs"],"created_at":"2024-12-20T22:18:10.184Z","updated_at":"2024-12-20T22:18:10.763Z","avatar_url":"https://github.com/iopipe.png","language":"JavaScript","readme":"# RequestBin-Lambda\n\n## *WARNING* This is not production-ready code and is not supported by IOpipe.\n\nRequestBin service based on AWS Lambda.\n\nLive-coded on the [IOpipe Twitch Channel](https://twitch.tv/iopipe)!\n\n## Setup\n\n### Install dependencies/tools\n\nRequestBin's deps are documented in `package.json`. You'll also need to install the [serverless framework](http://serverless.com) as a build tool.\n\n```\nnpm i\nsudo npm i -g serverless\n```\n\nYou'll want to change the IOpipe access token on line 13 of `serverless.yml` with [your access token](https://dashboard.iopipe.com/install) (Log in if you don't see your access token).\n\n### Deploy via `sls`\n\nCreate an s3 bucket called `{your_app_name}-requestbin` and give the lambdas deployed by this project permission to PUT objects into those buckets as well as GET them. Then, set the environment variable in `serverless.yml` on line 12 called `custom.bucket` to the same name.\n\nMake sure you've [configured your AWS login with serverless framework](https://serverless.com/framework/docs/providers/aws/guide/quick-start/), then:\n\n```\nsls deploy\n``` \n\n### Configure CloudFront Distribution\n\n#### Create CloudFront Distribution\n\nSpecify S3 Bucket as Origin-- this is done in the wizard when creating CloudFront Distribution.\n\n#### Edit Behavior\n\nAssociate Lambda Function for Viewer Request-- you'll use an ARN with an exact version number to associate.\n\n## Making Requests\n\n### Get a RequestBin:\n\n```\ncurl your-lambda-domain/geturl\n```\n\nThis will return JSON in the following format:\n\n```\n{\n  requestTo: \"\u003chttps url\u003e\",\n  requestFrom: \"\u003chttps url\u003e\",\n  requestFromToken: \"\u003cBearer Token for Authorization Header\u003e\",\n  requestFromCurl: \"\u003ccurl command that uses requestFrom url and bearer token\u003e\"\n}\n```\n\n### Use the RequestBin:\n\n1. Send request to `requestTo` url.\n2. Run the `requestFromCurl` command.\n\nIf desiring to build an API consumer, make an HTTP GET request from the `requestFrom` url using an `Authorization: Bearer \u003crequestFromToken\u003e` header.\n\n# License\n\nApache/2.0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiopipe%2Flambda-requestbin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiopipe%2Flambda-requestbin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiopipe%2Flambda-requestbin/lists"}