File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff line change @@ -28,3 +28,13 @@ Each token in the command is an item in the list.
2828For example, `echo "Hello World"` would be represented as ["echo", "\"Hello World\""].
2929EOF
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+ }
You can’t perform that action at this time.
0 commit comments