I have a query I'd like to run regularly in Redshift. I've set up an AWS Data Pipeline for it.
My problem is that I cannot figure out how to access Redshift. I keep getting "Unable to establish connection" errors. I have an Ec2Resource and I've tried including a subnet from our cluster's VPC and using the Security Group Id that Redshift uses, while also adding that sg-id to the inbound part of the rules. No luck.
Does anyone have a from-scratch way to set up a data pipeline to run against Redshift?
How I currently have my pipeline set up
- RedshiftDatabase
- Connection String:
jdbc:redshift://[host]:[port]/[database]
- Username, Password
- Connection String:
- Ec2Resource
- Resource Role: DataPipelineDefaultResourceRole
- Role: DataPipelineDefaultRole
- Terminate after: 20 minutes
- SqlActivity
- Database: [database] (from Connection String)
- Runs on: Ec2Resource
- Script: SQL query
Error message
Unable to establish connection to jdbc:postgresql://[host]:[port]/[database] Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.