Skip to content

Commit

Permalink
Merge pull request #7 from wearetechnative/feature/add-concurrent-ver…
Browse files Browse the repository at this point in the history
…sioning

feature/add concurrent versioning
  • Loading branch information
AndrNgg authored Jan 20, 2025
2 parents 5ba61df + 60f992e commit 66c495f
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 @@ -40,7 +40,7 @@ resource "aws_lambda_function" "this" {
layers = var.layers
memory_size = var.memory_size
publish = true # always create new version
#reserved_concurrent_executions = 10 # prevent DDOS
reserved_concurrent_executions = var.reserved_concurrent_executions

timeout = var.timeout

Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ variable "sqs_dlq_arn" {
type = string
}

variable "reserved_concurrent_executions" {
description = "Amount of reserved concurrent executions for the lambda function."
type = string
default = "-1"
}

variable "layers" {
description = "A list of Lambda Layer ARNS to be attached to the Lambda."
type = list(string)
Expand Down

0 comments on commit 66c495f

Please sign in to comment.