Scheduling queries using the Amazon Redshift query editor
The Amazon Redshift console allows users to schedule queries on a Redshift cluster. Users can schedule long-running or time-sensitive queries, refresh materialized views at regular intervals, and load or unload data.
In this recipe, we will look at the steps required to schedule a query using the query editor.
Getting ready
To complete this recipe, you will need the following:
- An Amazon Redshift cluster deployed in the
eu-west-1
AWS region. - An IAM user with access to Amazon Redshift, the Amazon Redshift query editor, and Amazon EventBridge.
- An IAM role attached to the Amazon Redshift cluster that can access Amazon EventBridge, which we will refer to in the recipes as
[Your-Redshift_Role]
. - We will reuse the
product_review_mv
materialized view that was set up using the Managing materialized views recipe in Chapter 2, Data Management.
How to do it…
In this recipe, we will automate...