{"id":16260079,"url":"https://github.com/cludden/tf-lambda-api-gateway-example","last_synced_at":"2026-02-28T03:37:47.350Z","repository":{"id":44081661,"uuid":"105204182","full_name":"cludden/tf-lambda-api-gateway-example","owner":"cludden","description":"example of using terraform to deploy a lambda function behind an api gateway","archived":false,"fork":false,"pushed_at":"2022-12-30T19:38:11.000Z","size":1771,"stargazers_count":4,"open_issues_count":17,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T21:32:25.622Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cludden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-28T22:13:31.000Z","updated_at":"2020-08-20T13:21:53.000Z","dependencies_parsed_at":"2023-01-31T14:45:33.838Z","dependency_job_id":null,"html_url":"https://github.com/cludden/tf-lambda-api-gateway-example","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/cludden%2Ftf-lambda-api-gateway-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Ftf-lambda-api-gateway-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Ftf-lambda-api-gateway-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Ftf-lambda-api-gateway-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cludden","download_url":"https://codeload.github.com/cludden/tf-lambda-api-gateway-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244029429,"owners_count":20386406,"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":[],"created_at":"2024-10-10T16:06:16.685Z","updated_at":"2026-02-28T03:37:42.330Z","avatar_url":"https://github.com/cludden.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tf-lambda-api-gateway-example\nexample of using `terraform` to deploy a `node.js` lambda function behind an `AWS API Gateway`\n\n## Installing\nPrereqs:\n- node v8+\n\n```shell\n# clone this repository\n$ git clone https://github.com/cludden/tf-lambda-api-gateway.git\n\n# install dependencies\n$ cd tf-lambda-api-gateway \u0026\u0026 npm install\n```\n\n## Testing\nPrereqs:\n- node v8+\n\n```shell\n# run the test suite\n$ npm run test\n```\n\n## Building\n*Note: this project uses features from from Node 8, and as such requires a build step*\n\nPrereqs:\n- node v8+\n\n```shell\n# run webpack which runs transpilation/minification and generates an\n# artifact for each lambda function in the ./dist directory\n$ npm run build\n```\n\n## Deploying\nPrereqs:\n- Terraform v0.12+\n- AWS account with high degree of privileges and credentials available in the environment\n\n```shell\n# change into the terraform directory\n$ cd terraform\n\n# create a new terraform environment\n$ terraform env new dev\n\n# install any missing plugins\n$ terraform init\n\n# run a plan\n$ terraform plan -var env=dev\n...\nPlan: 13 to add, 0 to change, 0 to destroy.\n\n# apply\n$ terraform apply -var env=dev\n...\nApply complete! Resources: 13 added, 0 changed, 0 destroyed.\n\nOutputs:\n\nurl = https://\u003capi_id\u003e.execute-api.us-west-2.amazonaws.com/example_lambda_dev\n\n# destroy when finished\n$ terraform destroy -var env=dev\n```\n\n*Note: it can take a few minutes before the integrations become active*\n\n## License\nCopyright (c) 2017 Chris Ludden\nLicensed under the [MIT License](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcludden%2Ftf-lambda-api-gateway-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcludden%2Ftf-lambda-api-gateway-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcludden%2Ftf-lambda-api-gateway-example/lists"}