I solved it creating a parameter group an changing rds.force_ssl from 1 to 0,then associate it with the RDS instance. Finally, creating inbound rules to the VPC and adding PostgreSQL to it, giving access anywhere with IPv4.