{"id":20838632,"url":"https://github.com/mewa/terraform-aws-serverless-resource","last_synced_at":"2025-07-12T20:33:57.890Z","repository":{"id":41280980,"uuid":"129562465","full_name":"mewa/terraform-aws-serverless-resource","owner":"mewa","description":"This module simplifies the setup required to deploy Lambda functions under API Gateway. It also sets up CORS for created resources and methods.","archived":false,"fork":false,"pushed_at":"2020-06-17T19:24:59.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T20:58:08.935Z","etag":null,"topics":["api-gateway","aws-lambda","lambda","serverless","terraform","terraform-modules"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/mewa/serverless-resource/aws","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/mewa.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-14T23:40:15.000Z","updated_at":"2021-07-29T21:48:51.000Z","dependencies_parsed_at":"2022-09-21T00:40:59.366Z","dependency_job_id":null,"html_url":"https://github.com/mewa/terraform-aws-serverless-resource","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mewa%2Fterraform-aws-serverless-resource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mewa%2Fterraform-aws-serverless-resource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mewa%2Fterraform-aws-serverless-resource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mewa%2Fterraform-aws-serverless-resource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mewa","download_url":"https://codeload.github.com/mewa/terraform-aws-serverless-resource/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253149569,"owners_count":21861720,"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":["api-gateway","aws-lambda","lambda","serverless","terraform","terraform-modules"],"created_at":"2024-11-18T01:10:57.082Z","updated_at":"2025-05-08T20:58:15.505Z","avatar_url":"https://github.com/mewa.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Serverless Resource module\n\nThis module simplifies the setup required to deploy Lambda functions under API Gateway (v1/REST). It also sets up CORS for created resources and methods.\n\nIt creates resources and sets up HTTP methods to invoke supplied Lambdas.\n\n# Examples\n\n```hcl\n# /test\nmodule \"test\" {\n  source  = \"mewa/serverless-resource/aws\"\n  version = \"2.0.0\"\n\n  api           = aws_api_gateway_rest_api.api.id\n  root_resource = aws_api_gateway_rest_api.api.root_resource_id\n\n  api_key_required = true # false by default\n\n  resource = \"test\"\n  origin   = \"https://example.com\" # optional, defaults to \"*\"\n\n  methods = [\n    {\n      method     = \"PUT\" # HTTP method\n      type       = \"AWS\" # lambda integration type\n      invoke_arn = aws_lambda_function.test_put_lambda.invoke_arn # lambda invoke ARN\n    },\n    {\n      method     = \"DELETE\"\n      type       = null # if null defaults to \"AWS_PROXY\"\n      invoke_arn = aws_lambda_function.test_delete_lambda.invoke_arn\n    }\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmewa%2Fterraform-aws-serverless-resource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmewa%2Fterraform-aws-serverless-resource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmewa%2Fterraform-aws-serverless-resource/lists"}