Skip to content

Commit e2142c0

Browse files
committed
add description to lambda
1 parent 48bf7c9 commit e2142c0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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)