Skip to main content
All CollectionsActionsAmazon Web Services
Delete Redshift Clusters Actions
Delete Redshift Clusters Actions
Matt Houser avatar
Written by Matt Houser
Updated over 6 years ago

Description

The Delete Redshift Clusters action will delete all Redshift clusters matching a specified filter.

For example, at 8am, all Redshift clusters ending in "-dev" can be deleted.

Test Mode

The Delete Redshift Clusters action includes a "test mode" as a way of determining which items will be deleted without actually deleting the items. This way, you can fine tune your action without concern for deleting the wrong items. Test Mode is on by default.

When test mode is enabled, execute your action normally then check the action logs to verify that only items that should have been deleted would have been deleted, and that items that should not have been deleted would not have been deleted.

When you are satisfied, disable Test Mode.

Settings

Please see Common Action Settings for a description of settings common to all action types.

Cluster Identification Method

Indicates how the Redshift clusters will be selected. Valid values are:

  • By Redshift Cluster ID - Specify a cluster ID to delete

  • All Redshift Clusters - All Redshift clusters will be deleted

Redshift Cluster ID

Indicates the Redshift cluster ID that will be deleted. Required if Cluster Identification Method is set to "By Redshift Cluster ID". This cluster must exist in the region specified.

Create a Final Snapshot

Indicates whether a final snapshot should be created of the Redshift cluster when it is deleted.

Final Snapshot ID

Indicates the snapshot ID of the final snapshot when the cluster is deleted. This value is only required if "Create a Final Snapshot" is enabled. Macros can be used in the snapshot ID to include run-time data. See below.

Test Mode

Enables and disabled Test Mode (see above).

Macros

The following macros can be used to include some run-time information.

$(DATE)

Date of snapshot in year-month-day format

$(TIME)

Time of snapshot in 24-hour format

$(CLUSTERID)

Cluster ID of the Redshift cluster being deleted

Macros are case-sensitive. For example, $(Time) is not valid. $(TIME) must be used.

Amazon Commands Used

The following Amazon AWS commands are used. The access key should have permission to execute all of them.

  • redshift:DeleteCluster

  • redshift:DescribeClusters

Did this answer your question?