Skip to content

Commit aba626b

Browse files
authored
Merge pull request #9 from highwingio/add-description
add description to lambda
2 parents 48bf7c9 + 4cc640e commit aba626b

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ No modules.
5555

5656
| Name | Description | Type | Default | Required |
5757
|------|-------------|------|---------|:--------:|
58+
| <a name="input_description"></a> [description](#input\_description) | Description of the Lambda Function | `string` | `null` | no |
5859
| <a name="input_environment"></a> [environment](#input\_environment) | Environment variables to be passed to the function | `map(string)` | `{}` | no |
5960
| <a name="input_error_rate_alarm_threshold"></a> [error\_rate\_alarm\_threshold](#input\_error\_rate\_alarm\_threshold) | Error rate (in percent, 1-100) at which to trigger an alarm notification | `number` | `25` | no |
6061
| <a name="input_handler"></a> [handler](#input\_handler) | Name of the handler function inside the artifact (https://docs.aws.amazon.com/lambda/latest/dg/configuration-console.html) | `string` | n/a | yes |

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ resource "aws_s3_bucket_object" "lambda_deploy_object" {
123123
# The Lambda function itself
124124
resource "aws_lambda_function" "lambda" {
125125
function_name = var.name
126+
description = var.description
126127
handler = var.handler
127128
layers = var.layer_arns
128129
memory_size = var.memory_size

vars.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
variable "description" {
2+
default = null
3+
description = "Description of the Lambda Function"
4+
type = string
5+
}
6+
17
variable "environment" {
28
default = {}
39
description = "Environment variables to be passed to the function"

0 commit comments

Comments
 (0)