diff --git a/functions.tf b/functions.tf
index 3bc9e1caed10b445d373170072554a088d7ec2a0..ed8a189ceba6e4619f7a0b466a669617cd6dee4e 100644
--- a/functions.tf
+++ b/functions.tf
@@ -93,7 +93,7 @@ output "timeout" {
 resource "aws_lambda_function" "function" {
   count             = length(local.functions)
   runtime           = var.runtime
-  function_name     = "${local.function_name_prefix}_${local.functions[count.index]}"
+  function_name     = "${local.function_name_prefix}-${replace(local.functions[count.index], "_", "")}"
   role              = local.lambda_role_arn
   source_code_hash  = filebase64sha256("payload.zip")
   s3_bucket         = local.payloads_bucket_name