You must be logged in to view saved presets
This template creates an AWS Redshift cluster and associates it with a snapshot schedule.
resource "aws_redshift_cluster" "default" {
cluster_identifier = "tf-redshift-cluster"
cluster_type = "single-node"
database_name = "mydb"
master_password = "Mustbe8characters"
master_username = "foo"
node_type = "dc1.large"
}
resource "aws_redshift_snapshot_schedule" "default" {
definitions = ["rate(12 hours)"]
identifier = "tf-redshift-snapshot-schedule"
}
resource "aws_redshift_snapshot_schedule_association" "default" {
cluster_identifier = aws_redshift_cluster.default.id
schedule_identifier = aws_redshift_snapshot_schedule.default.id
}