Resource: aws_dms_event_subscription

Provides a DMS (Data Migration Service) event subscription resource.

Example Usage

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"
  }
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import event subscriptions using the name. For example:

import {
  to = aws_dms_event_subscription.test
  id = "my-awesome-event-subscription"
}

Using terraform import, import event subscriptions using the name. For example:

% terraform import aws_dms_event_subscription.test my-awesome-event-subscription