https://github.com/note/terraform-aws-lambda
Terraform module: AWS Lambda + API Gateway + other accompanying resources
https://github.com/note/terraform-aws-lambda
Last synced: 4 months ago
JSON representation
Terraform module: AWS Lambda + API Gateway + other accompanying resources
- Host: GitHub
- URL: https://github.com/note/terraform-aws-lambda
- Owner: note
- Created: 2020-04-03T13:56:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-09T10:11:18.000Z (about 6 years ago)
- Last Synced: 2025-10-20T07:42:37.227Z (8 months ago)
- Language: HCL
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Requirements
| Name | Version |
|------|---------|
| terraform | >= 0.12.0 |
## Providers
| Name | Version |
|------|---------|
| aws | n/a |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| api\_gateway\_rest\_api\_arn | execution\_arn of aws\_api\_gateway\_rest\_api | `string` | `""` | no |
| api\_gateway\_rest\_api\_id | id of aws\_api\_gateway\_rest\_api | `string` | `""` | no |
| api\_gateway\_rest\_api\_root\_resource\_id | root\_resource\_id of aws\_api\_gateway\_rest\_api | `string` | `""` | no |
| artifact\_file\_name | filename of the articat to be deployed (zip/jar file) | `string` | n/a | yes |
| base\_layers | List of Lambda Layers. Each item is an ARN | `list(string)` | `[]` | no |
| deployment\_s3\_bucket\_name | name of s3 bucket to which zip artifact will be uploaded to | `string` | n/a | yes |
| function\_name | AWS lambda function name. Has nothing to do with function name in the backend code itself | `string` | n/a | yes |
| handler | Function from the backend code to be called. Format and its semantics depends on programming language and packaging method | `string` | n/a | yes |
| http\_method | http method | `string` | `""` | no |
| log\_retention | CloudWatch log retention in days | `number` | `7` | no |
| memory\_size | AWS lambda memory size in megabytes | `number` | `256` | no |
| path\_part | path part of the URL | `string` | `""` | no |
| runtime | AWS lambda runtime | `string` | n/a | yes |
| timeout | AWS lambda execution timeout in seconds | `number` | `30` | no |
## Outputs
| Name | Description |
|------|-------------|
| function\_name | AWS Lambda function name |
| lambda\_role\_name | lambda role name |
## Known shortcomings
It generates new `aws_iam_policy` for each of lambda function even though it's always the same.