diff --git a/terraform/environments/apex/module/lambda/main.tf b/terraform/environments/apex/module/lambda/main.tf index c53f27efa6f..6fceebfa4dd 100644 --- a/terraform/environments/apex/module/lambda/main.tf +++ b/terraform/environments/apex/module/lambda/main.tf @@ -89,7 +89,7 @@ resource "aws_lambda_function" "snapshotDBFunction" { role = aws_iam_role.backuplambdarole.arn handler = var.handler - source_code_hash = data.archive_file.lambda_dbsnapshot.output_base64sha256[count.index] + source_code_hash = data.archive_file.lambda_dbsnapshot[count.index].output_base64sha256 runtime = "nodejs18.x"