@mali
Currently the variable is all or nothing. Some databases allow using a connection string parameter to limit the amount of connections. You can set those in Admin > Databases > your-db
Have a look at this topic (specially comment 13) - there’s several options for setting environment variables: Best practice for having RDS as part of EB environment