I was able to work with lambdas and VPC by using VPC Endpoints but only with RDS. As soon as I change the endpoint to an RDS proxy, I get the following error message:
“errorMessage”: “could not connect to server: No such file or directory\n\tIs the server running locally and accepting\n\tconnections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”?\n”,
“errorType”: “FunctionActiveRecord::ConnectionNotEstablished”