I'm not able to connect to my AWS Redshift database using RPostgreSQL.
Does anyone have an example of code that would work?
library (RPostgreSQL)
drv <- dbDriver("PostgreSQL")
conn <- dbConnect(drv, "database.us-east-1.redshift.amazonaws.com", "jeffz", "PsWrd123")
Error in postgresqlNewConnection(drv, ...) :
RS-DBI driver: (could not connect database.us-east-1.redshift.amazonaws.com@PsWrd123 on dbname "database.us-east-1.redshift.amazonaws.com"
Windows 7 postgresql-8.4-703.jdbc4 in drivers path to jre7 is set in environment
Make sure you allow access in RDS security groups by specifying 0.0.0.0/0 for all IPs