Skip to content

Commit 7e4c968

Browse files
committed
fix: only use provisioned concurrency when fixed count > 0
1 parent 9cfa6f6 commit 7e4c968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infra/modules/aws/lambda/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ resource "aws_lambda_alias" "live" {
4242
}
4343

4444
resource "aws_lambda_provisioned_concurrency_config" "alias_pc_fixed" {
45-
count = local.fixed_mode ? 1 : 0
45+
count = local.fixed_mode && local.pc_fixed_count > 0 ? 1 : 0
4646

4747
function_name = aws_lambda_function.lambda.function_name
4848
qualifier = aws_lambda_alias.live.name

0 commit comments

Comments
 (0)