Case 5: Redshift Clusters

.

Redshift Clusters are expensive to resources, and scheduling them can contribute to significant savings on cloud billing. This can be done by creating a cluster snapshot, and then deleting the cluster, during parking. When the resources are unparked, the cluster is restored from the snapshot, and the snapshot is deleted.
We will be scheduling the Redshift Cluster with Cluster Identifier as 'dev'

.

  1. Create a new schedule and set the Name, AWS Account, Region and timings for it.

.

  1. Redshift as your Service and Clusters as your Resource

.

  1. To backup only our specific resource, set the filter type to Param, and set $.ClusterIdentifier == dev

.

  1. For the Parking Action, we will delete the Redshift Cluster and create a final snapshot
    1. Set the service to Redshift, and action to Delete Cluster
    2. Enter the following code in params mapping:
{
/*---------- required params ----------*/

"ClusterIdentifier": "obj.ClusterIdentifier",

/*---------- optional params ----------*/

"SkipFinalClusterSnapshot": false,
"FinalClusterSnapshotIdentifier": "dev",
"FinalClusterSnapshotRetentionPeriod": "VALUE"
}

.

  1. For the unparking action, we will restore the cluster from the snapshot, and then delete the snapshot once the restore is done
    1. Select NONE from the drop-down, set the service as Redshift and action as Restore From Cluster Snapshot
    2. Check the wait for box
    3. Enter the following code in params mapping:
{

/*---------- required params ----------*/

"ClusterIdentifier": "dev",
"SnapshotIdentifier": "dev",

}

.

  1. Add another unparking action to delete the snapshot (after the cluster is restored)
    1. Select NONE from the drop-down, set the service as Redshift and action as Delete Cluster Snapshot
    2. Enter the following code in params mapping:
{

/*---------- required params ----------*/

"SnapshotIdentifier": "dev",

}

.

  1. Save and deploy the workflow

Did You Find This Article Helpful?

Case 4: RDS DB Instances

Smart Scheduling

Powered by HelpDocs