Creates an AWS Redshift cluster, an SNS topic, and subscribes to Redshift events.

Terraform Template

resource "aws_redshift_cluster" "default" {
  cluster_identifier = "default"
  database_name = "default"
}

resource "aws_redshift_event_subscription" "default" {
  event_categories = ["configuration", "management", "monitoring", "security"]
  name = "redshift-event-sub"
  severity = "INFO"
  sns_topic_arn = aws_sns_topic.default.arn
  source_ids = [aws_redshift_cluster.default.id]
  source_type = "cluster"

  tags = {
    Name = "default"
  }
}

resource "aws_sns_topic" "default" {
  name = "redshift-events"
}