Skip to content

Commit 146d3ac

Browse files
authored
Point prov concurrency at the version not alias (#61)
Alias has eventual consistency issues and can error out terraform
1 parent 67d8712 commit 146d3ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/services/lambda-apihandler.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ resource "aws_lambda_provisioned_concurrency_config" "api_handler_live" {
9292
count = var.api_handler_provisioned_concurrency > 0 ? 1 : 0
9393
function_name = aws_lambda_function.api_handler.function_name
9494
provisioned_concurrent_executions = var.api_handler_provisioned_concurrency
95-
qualifier = aws_lambda_alias.api_handler_live.name
95+
qualifier = aws_lambda_function.api_handler.version
9696
}
9797

9898
resource "aws_lambda_alias" "api_handler_live" {

0 commit comments

Comments
 (0)