Skip to content

Commit 36d4cda

Browse files
committed
Added var.reserved_concurrency to relax compliance for flexibility launching new lambda functions.
1 parent 107be07 commit 36d4cda

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 0.4.15 (Feb 26, 2025)
2+
* Added `var.reserved_concurrency` to relax compliance for flexibility launching new lambda functions.
3+
14
# 0.4.14 (Feb 26, 2025)
25
* Upgraded Terraform providers.
36

lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ resource "aws_lambda_function" "this" {
1313
tags = local.tags
1414
package_type = "Image"
1515
image_uri = local.effective_image_uri
16-
reserved_concurrent_executions = 100
16+
reserved_concurrent_executions = var.reserved_concurrency
1717
kms_key_arn = aws_kms_key.this.arn
1818

1919
image_config {

variables.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,13 @@ Each token in the command is an item in the list.
2828
For example, `echo "Hello World"` would be represented as ["echo", "\"Hello World\""].
2929
EOF
3030
}
31+
32+
variable "reserved_concurrency" {
33+
type = number
34+
default = -1
35+
description = <<EOF
36+
The number of reserved concurrent executions for this Lambda function.
37+
This guarantees a minimum amount of concurrent executions for the function.
38+
`-1` removes limitations and `0` disables the lambda from being triggered
39+
EOF
40+
}

0 commit comments

Comments
 (0)