AWS: Automating queries in redshift
问题 I want to automate a redshift insert query to be run every day. We actually use Aws environment. I was told using lambda is not the right approach. Which is the best ETL process to automate a query in Redshift. 回答1: For automating SQL on Redshift you have 3 options (at least) Simple - cron Use a EC2 instance and set up a cron job on that to run your SQL code. psql -U youruser -p 5439 -h hostname_of_redshift -f your_sql_file Feature rich - Airflow (Recommended) If you have a complex schedule