https://github.com/alexandermendes/tf-aws-lambda-file
A Terraform module to create AWS Lambda resources from file.
https://github.com/alexandermendes/tf-aws-lambda-file
aws terraform
Last synced: 3 months ago
JSON representation
A Terraform module to create AWS Lambda resources from file.
- Host: GitHub
- URL: https://github.com/alexandermendes/tf-aws-lambda-file
- Owner: alexandermendes
- Created: 2019-10-11T21:06:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-16T21:50:41.000Z (over 6 years ago)
- Last Synced: 2025-10-04T05:54:57.064Z (9 months ago)
- Topics: aws, terraform
- Language: HCL
- Homepage:
- Size: 42 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Terraform AWS Zipped Lambda File Module
A Terraform module to create AWS Lambda resources from file.
## Usage
For a function `my-function.py` placed in the `functions` directory in the root
of the repository.
```terraform
module "lambda" {
source = "git::https://github.com/alexandermendes/tf-aws-lambda-file.git?ref=tags/v1.0.0"
function_name = "my-function"
dir = "functions"
ext = "py"
runtime = "python3.7"
handler = "lambda_handler"
}
```
**Note that the source reference above is just an example, in most cases you
should update it to the [latest tag](https://github.com/alexandermendes/tf-aws-lambda-file/tags).**
For additional variables and outputs see [variables.tf](./variables.tf) and
[outputs.tf](./outputs.tf), respectively.