Creates an AWS DMS event subscription that triggers on specific event categories related to replication tasks.

Terraform Template

resource "aws_dms_event_subscription" "example" {
  enabled = true
  event_categories = ["creation", "failure"]
  name = "my-favorite-event-subscription"
  sns_topic_arn = "aws_sns_topic.example.arn"
  source_ids = ["aws_dms_replication_task.example.replication_task_id"]
  source_type = "replication-task"

  tags = {
    Name = "example"
  }
}