{"id":22066093,"url":"https://github.com/pcpratheesh/terraform-lambda-deployment-sample","last_synced_at":"2026-04-16T05:34:21.373Z","repository":{"id":154439051,"uuid":"484043605","full_name":"pcpratheesh/terraform-lambda-deployment-sample","owner":"pcpratheesh","description":"Sample code for configure a lambda function with terraform","archived":false,"fork":false,"pushed_at":"2022-04-21T12:52:50.000Z","size":4667,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-30T00:41:38.401Z","etag":null,"topics":["aws","code","golang","infrastructure","lambda","lambda-functions","sample","server","serverless","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pcpratheesh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-21T12:31:16.000Z","updated_at":"2022-04-21T12:55:51.000Z","dependencies_parsed_at":"2023-05-01T18:05:46.675Z","dependency_job_id":null,"html_url":"https://github.com/pcpratheesh/terraform-lambda-deployment-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pcpratheesh/terraform-lambda-deployment-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcpratheesh%2Fterraform-lambda-deployment-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcpratheesh%2Fterraform-lambda-deployment-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcpratheesh%2Fterraform-lambda-deployment-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcpratheesh%2Fterraform-lambda-deployment-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcpratheesh","download_url":"https://codeload.github.com/pcpratheesh/terraform-lambda-deployment-sample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcpratheesh%2Fterraform-lambda-deployment-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31872656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","code","golang","infrastructure","lambda","lambda-functions","sample","server","serverless","terraform"],"created_at":"2024-11-30T19:25:43.093Z","updated_at":"2026-04-16T05:34:21.351Z","avatar_url":"https://github.com/pcpratheesh.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-lambda-deployment-sample\nSample code for configure a lambda function with terraform\n\n## Terraform\n- **init**          Prepare your working directory for other commands\n- **validate**      Check whether the configuration is valid\n- **plan**          Show changes required by the current configuration\n- **apply**         Create or update infrastructure\n- **destroy**       Destroy previously-created infrastructure\n\nThis infra-structure will create a new lambda along with an api gateway connected.\n\n\nTerraform will keep the state in an s3 bucket under a **state.tfstate** key. In order that to happen we need to set up three environment variables:\n\n```sh\n    $ export AWS_SECRET_ACCESS_KEY=...\n    $ export AWS_ACCESS_KEY_ID=..\n    $ export AWS_DEFAULT_REGION=...\n```\n\nAlso you can configure the data inside **variables.tf**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcpratheesh%2Fterraform-lambda-deployment-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcpratheesh%2Fterraform-lambda-deployment-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcpratheesh%2Fterraform-lambda-deployment-sample/lists"}