{"id":25409172,"url":"https://github.com/enter-at/terraform-aws-lambda","last_synced_at":"2026-03-06T00:31:18.412Z","repository":{"id":49539246,"uuid":"227416627","full_name":"enter-at/terraform-aws-lambda","owner":"enter-at","description":"Terraform module designed to facilitate the creation of AWS Lambda functions","archived":false,"fork":false,"pushed_at":"2024-08-29T23:24:18.000Z","size":102,"stargazers_count":3,"open_issues_count":70,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-31T04:41:11.661Z","etag":null,"topics":["aws","aws-lambda","terraform","terraform-module"],"latest_commit_sha":null,"homepage":null,"language":"HCL","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/enter-at.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-12-11T16:56:15.000Z","updated_at":"2024-01-14T01:58:34.000Z","dependencies_parsed_at":"2025-10-31T04:31:06.227Z","dependency_job_id":"83098cc8-b58e-4514-9dd6-06caffb3254d","html_url":"https://github.com/enter-at/terraform-aws-lambda","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/enter-at/terraform-aws-lambda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enter-at%2Fterraform-aws-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enter-at%2Fterraform-aws-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enter-at%2Fterraform-aws-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enter-at%2Fterraform-aws-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enter-at","download_url":"https://codeload.github.com/enter-at/terraform-aws-lambda/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enter-at%2Fterraform-aws-lambda/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30156285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"ssl_error","status_checked_at":"2026-03-05T22:39:24.771Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","aws-lambda","terraform","terraform-module"],"created_at":"2025-02-16T08:19:53.932Z","updated_at":"2026-03-06T00:31:18.382Z","avatar_url":"https://github.com/enter-at.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n\n  ** DO NOT EDIT THIS FILE\n  **\n  ** This file was automatically generated by the `build-harness`.\n  ** 1) Make all changes to `README.yaml`\n  ** 2) Run `make init` (you only need to do this once)\n  ** 3) Run`make readme` to rebuild this file.\n  **\n\n  --\u003e\n\n[\u003cimg src=\"https://res.cloudinary.com/enter-at/image/upload/v1576145406/static/logo-svg.svg\" alt=\"enter-at\" width=\"100\"\u003e][website]\n\n# terraform-aws-lambda [![Build Status](https://github.com/enter-at/terraform-aws-lambda/workflows/Terraform%20Lint/badge.svg)](https://github.com/enter-at/terraform-aws-lambda/actions) [![Latest Release](https://img.shields.io/github/release/enter-at/terraform-aws-lambda.svg)](https://github.com/enter-at/terraform-aws-lambda/releases/latest) [![Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n\nTerraform module designed to facilitate the creation of AWS Lambda functions.\n\n\n---\n\n\nIt's 100% Open Source and licensed under the [APACHE2](LICENSE).\n\n\n\n\n\n## Usage\n\n\n**IMPORTANT:** The `master` branch is used in `source` just as an example. In your code, do not pin to `master` because there may be breaking changes between releases.\nInstead pin to the release tag (e.g. `?ref=tags/x.y.z`) of one of our [latest releases](https://github.com/enter-at/terraform-aws-lambda/releases).\n\n\n### Simple Example\n\n```hcl\nmodule \"lambda\" {\n  source        = \"git::https://github.com/enter-at/terraform-aws-lambda.git?ref=master\"\n  function_name = \"test-service\"\n  handler       = \"service/handler\"\n  source_dir    = var.source_dir\n  runtime       = var.runtime\n\n  rsync_pattern = [\n    \"--include='*.js'\"\n  ]\n}\n```\n### Advanced Example\n\n```hcl\nlocals {\n  service_dir = \"account-data\"\n}\n\nmodule \"lambda\" {\n  source        = \"git::https://github.com/enter-at/terraform-aws-lambda.git?ref=master\"\n  function_name = \"test-service\"\n  handler       = \"${local.service_dir}/handler\"\n  source_dir    = var.source_dir\n  runtime       = var.runtime\n  layers        = var.layers\n  publish       = true\n\n  provisioned_concurrency_config = {\n    qualifier                         = aws_lambda_alias.production.name\n    provisioned_concurrent_executions = var.provisioned_concurrent_executions\n  }\n\n  rsync_pattern = [\n    \"--include={lib,domain,${local.service_dir}}/\",\n    \"--include='*.js'\"\n  ]\n\n  policy = {\n    json = data.aws_iam_policy_document.main.json\n  }\n\n  environment = {\n    variables = {\n      SM_SERVICE_CONFIG = var.secrets_manager_secret.arn\n    }\n  }\n\n  vpc_config = {\n    subnet_ids = var.private_subnet_ids\n\n    security_group_ids = [\n      var.security_group_id\n    ]\n  }\n\n  tags = {\n    \"Team\" = \"XYZ\"\n  }\n}\n\nresource \"aws_lambda_alias\" \"production\" {\n  function_name    = module.lambda.function_name\n  function_version = module.lambda.function_version\n  name             = \"production\"\n}\n```\n\n\n\n\n\n\n\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|:----:|:-----:|:-----:|\n| cloudwatch_log_subscription_filter | (Optional) A list of CloudWatch Logs subscription filter. | object | `null` | no |\n| dead_letter_config | (Optional) Nested block to configure the function's dead letter queue. | object | `null` | no |\n| description | (Optional) Description of what the Lambda function does. | string | `null` | no |\n| environment | (Optional) The Lambda environment's configuration settings. | object | `null` | no |\n| force_detach_policies | (Optional) Specifies to force detaching any policies the role has before destroying it. Defaults to false. | bool | `false` | no |\n| function_name | (Required) A unique name for the Lambda function. | string | - | yes |\n| handler | (Required) The function entrypoint in your code. | string | - | yes |\n| layers | (Optional) List of Lambda Layer Version ARNs (maximum of 5) to attach to the Lambda function. | list(string) | `null` | no |\n| memory_size | (Optional) Amount of memory in MB the Lambda function can use at runtime. Defaults to 128. | number | `128` | no |\n| module_name | (Optional) The location of the handler source code module. Defaults to '.' | string | `.` | no |\n| policy | (Optional) An additional policy to attach to the Lambda function role. | object | `null` | no |\n| provisioned_concurrency_config | (Optional) Lambda Provisioned Concurrency Configuration. | object | `null` | no |\n| publish | (Optional) Whether to publish creation/change as new Lambda function version. Defaults to false. | bool | `false` | no |\n| reserved_concurrent_executions | (Optional) The amount of reserved concurrent executions for this Lambda function. | number | `null` | no |\n| rsync_pattern | (Optional) A list of rsync pattern to include or exclude files and directories. | list(string) | `\u003clist\u003e` | no |\n| runtime | (Required) The identifier of the function's runtime. | string | - | yes |\n| source_dir | (Required) The location of the handler source code. | string | - | yes |\n| tags | (Optional) A mapping of tags to assign to the object. | map(string) | `null` | no |\n| timeout | (Optional) The amount of time the Lambda function has to run in seconds. Defaults to 3. | number | `3` | no |\n| tracing_config | (Optional) A child block with a single argument mode | object | `null` | no |\n| vpc_config | (Optional) Provide this to allow your function to access the VPC. | object | `null` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| arn | The Amazon Resource Name (ARN) identifying the Lambda function. |\n| function_name | The name identifying the Lambda function. |\n| function_timeout | The amount of time the Lambda function can run in seconds. |\n| function_version | The latest published version of the Lambda function. |\n| invoke_arn | The ARN to be used for invoking the Lambda function |\n| role_arn | The ARN of the IAM role created for the Lambda function |\n| role_name | The name of the IAM role created for the Lambda function |\n\n\n\n\n## Share the Love\n\nLike this project?\nPlease give it a ★ on [our GitHub](https://github.com/enter-at/terraform-aws-lambda)!\n\n\n## Related Projects\n\nCheck out these related projects.\n\n- [terraform-aws-lambda-layer](https://github.com/enter-at/terraform-aws-lambda-layer) - Terraform module designed to facilitate the creation of AWS Lambda layers.\n- [terraform-newrelic-alert-lambda](https://github.com/enter-at/terraform-newrelic-alert-lambda) - Terraform Module to define New Relic alerts for AWS Lambda functions.\n\n\n\n## Help\n\n**Got a question?**\n\nFile a GitHub [issue](https://github.com/enter-at/terraform-aws-lambda/issues).\n\n## Contributing\n\n### Bug Reports \u0026 Feature Requests\n\nPlease use the [issue tracker](https://github.com/enter-at/terraform-aws-lambda/issues) to report any bugs or file feature requests.\n\n### Developing\n\nIf you are interested in being a contributor and want to get involved in developing this project, we would love to hear from you!\n\nIn general, PRs are welcome. We follow the typical \"fork-and-pull\" Git workflow.\n\n 1. **Fork** the repo on GitHub\n 2. **Clone** the project to your own machine\n 3. **Commit** changes to your own branch\n 4. **Push** your work back up to your fork\n 5. Submit a **Pull Request** so that we can review your changes\n\n**NOTE:** Be sure to merge the latest changes from \"upstream\" before making a pull request!\n\n\n\n\n\n## License\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nSee [LICENSE](LICENSE) for full details.\n\n    Licensed to the Apache Software Foundation (ASF) under one\n    or more contributor license agreements.  See the NOTICE file\n    distributed with this work for additional information\n    regarding copyright ownership.  The ASF licenses this file\n    to you under the Apache License, Version 2.0 (the\n    \"License\"); you may not use this file except in compliance\n    with the License.  You may obtain a copy of the License at\n\n      https://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing,\n    software distributed under the License is distributed on an\n    \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n    KIND, either express or implied.  See the License for the\n    specific language governing permissions and limitations\n    under the License.\n\n\n\n\n### Contributors\n\n\n[![Steffen Leistner][sleistner_avatar]][sleistner_homepage]\n\n\n  [sleistner_homepage]: https://github.com/sleistner\n  [sleistner_avatar]: https://res.cloudinary.com/enter-at/image/fetch/f_png,r_max,w_100,h_100,c_thumb/https://github.com/sleistner.png\n\n\n\n  [website]: https://github.com/enter-at\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenter-at%2Fterraform-aws-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenter-at%2Fterraform-aws-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenter-at%2Fterraform-aws-lambda/lists"}