Skip to content

Commit

Permalink
Merge pull request #4 from meraj-kashi/Lambda-function-readme-variable
Browse files Browse the repository at this point in the history
Added variable for Lambda description
  • Loading branch information
zhelezovartem authored Sep 16, 2024
2 parents 94326f5 + 2f8b178 commit 3398db9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module "reporter_lambda" {
policy_json = var.create_role ? data.aws_iam_policy_document.combined[0].json : null

function_name = var.name
description = "Send reports to the Kosli app"
description = var.lambda_description
handler = "function.handler"
runtime = "provided.al2"
# local_existing_package = data.null_data_source.downloaded_package.outputs["filename"]
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,9 @@ variable "lambda_timeout" {
default = 60
description = "The amount of time Reporter Lambda Function has to run in seconds."
}

variable "lambda_description" {
type = string
default = "Send reports to the Kosli app"
description = "Lambda function description."
}

0 comments on commit 3398db9

Please sign in to comment.