diff --git a/terraform/hydrocron-main.tf b/terraform/hydrocron-main.tf index 8b07082..359a545 100644 --- a/terraform/hydrocron-main.tf +++ b/terraform/hydrocron-main.tf @@ -61,7 +61,7 @@ resource "aws_lambda_function" "hydrocron_api_lambda_test" { resource "aws_lambda_permission" "allow_hydrocron-test" { statement_id = "AllowAPIGatewayInvoke" action = "lambda:InvokeFunction" - function_name = aws_lambda_function.hydrocron_api_lambda-test.function_name + function_name = aws_lambda_function.hydrocron_api_lambda_test.function_name principal = "apigateway.amazonaws.com" # The "/*/*/*" portion grants access from any method on any resource