Resource: aws_dms_certificate

Provides a DMS (Data Migration Service) certificate resource. DMS certificates can be created, deleted, and imported.

Example Usage

# Create a new certificate
resource "aws_dms_certificate" "test" {
  certificate_id  = "test-dms-certificate-tf"
  certificate_pem = "..."

  tags = {
    Name = "test"
  }

}

Argument Reference

This resource supports the following arguments:

Attribute Reference

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

Import

In Terraform v1.5.0 and later, use an import block to import certificates using the certificate_id. For example:

import {
  to = aws_dms_certificate.test
  id = "test-dms-certificate-tf"
}

Using terraform import, import certificates using the certificate_id. For example:

% terraform import aws_dms_certificate.test test-dms-certificate-tf