Gateway base path mapping resource not found

Hello all. I’m trying to invoke a lambda through apigateway. The AWS resources are being hosted in localstack. I’m trying to create a aws_api_gateway_base_path_mapping resource and I’m getting this error when I run terraform apply:

│ Error: Error reading Gateway base path mapping: : Not found: %28none%29
│       status code: 404, request id:
│
│   with aws_api_gateway_base_path_mapping.domain,
│   on notes_api_gateway_service.tf line 159, in resource "aws_api_gateway_base_path_mapping" "domain":
│  159: resource "aws_api_gateway_base_path_mapping" "domain" {

Here is my base path mapping resource:

resource "aws_api_gateway_base_path_mapping" "domain" {                                                                                    
    depends_on = [                                                                                                                         
        aws_api_gateway_deployment.notes_deployment,                                                                                       
        aws_api_gateway_domain_name.domain,                                                                                                
        aws_api_gateway_stage.test_stage,                                                                                                  
    ]                                                                                                                                      
                                                                                                                                           
    api_id = aws_api_gateway_rest_api.notes_api.id                                                                                         
    domain_name = aws_api_gateway_domain_name.domain.domain_name                                                                           
    stage_name = aws_api_gateway_stage.test_stage.stage_name                                                                               
}

Here is the aws_lambda_permission resource:

resource "aws_lambda_permission" "notes_lambda_permission" {                                                                               
  statement_id  = "AllowAPIGatewayInvoke"                                                                                                  
  action        = "lambda:InvokeFunction"                                                                                                  
  function_name = aws_lambda_function.notes_lambda.function_name                                                                           
  principal = "apigateway.amazonaws.com"                                                                                                   
  source_arn = "arn:aws:execute-api:us-west-2:000000000000:${aws_api_gateway_rest_api.notes_api.id}/test/*/*"                              
}

Any help would be appreciated!

I have the same issue. @kalamity-linden have you found a solution?