Sets up a scheduled action to resize an AWS Redshift cluster based on specified parameters.

Terraform Template

resource "aws_redshift_scheduled_action" "example" {
  iam_role = "aws_iam_role.example.arn"
  name = "tf-redshift-scheduled-action"
  schedule = "cron(00 23 * * ? *)"

  target_action {

    resize_cluster {
      cluster_identifier = "tf-redshift001"
      cluster_type = "multi-node"
      node_type = "dc1.large"
      number_of_nodes = 2
    }
  }
}