Skip to content

Commit

Permalink
Add publish option
Browse files Browse the repository at this point in the history
  • Loading branch information
vibou committed Sep 4, 2020
1 parent aad8381 commit 823f087
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lambda_graphql.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ resource "aws_lambda_function" "graphql" {
handler = var.lambda_handler
runtime = var.lambda_runtime

publish = true
publish = var.lambda_publish

timeout = var.lambda_timeout
memory_size = var.lambda_memory_size
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,9 @@ variable "lambda_memory_size" {
description = "the lambda memory_size"
default = 1024
}

variable "lambda_publish" {
type = bool
description = "whether or not a new version of the lambda is published"
default = false
}

0 comments on commit 823f087

Please sign in to comment.