Resource: aws_dms_endpoint

Provides a DMS (Data Migration Service) endpoint resource. DMS endpoints can be created, updated, deleted, and imported.

Example Usage

# Create a new endpoint
resource "aws_dms_endpoint" "test" {
  certificate_arn             = "arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012"
  database_name               = "test"
  endpoint_id                 = "test-dms-endpoint-tf"
  endpoint_type               = "source"
  engine_name                 = "aurora"
  extra_connection_attributes = ""
  kms_key_arn                 = "arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012"
  password                    = "test"
  port                        = 3306
  server_name                 = "test"
  ssl_mode                    = "none"

  tags = {
    Name = "test"
  }

  username = "test"
}

Argument Reference

The following arguments are required:

The following arguments are optional:

elasticsearch_settings

kafka_settings

kinesis_settings

mongodb_settings

postgres_settings

redis_settings

redshift_settings

s3_settings

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 endpoints using the endpoint_id. For example:

import {
  to = aws_dms_endpoint.test
  id = "test-dms-endpoint-tf"
}

Using terraform import, import endpoints using the endpoint_id. For example:

% terraform import aws_dms_endpoint.test test-dms-endpoint-tf