Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 2.46 KB

dms_certificate.html.markdown

File metadata and controls

65 lines (45 loc) · 2.46 KB
subcategory layout page_title description
DMS (Database Migration)
aws
AWS: aws_dms_certificate
Provides a DMS (Data Migration Service) certificate resource.

Resource: aws_dms_certificate

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

~> Note: All arguments including the PEM encoded certificate will be stored in the raw state as plain-text. Read more about sensitive data in state.

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:

  • certificate_id - (Required) The certificate identifier.

    • Must contain from 1 to 255 alphanumeric characters and hyphens.
  • certificate_pem - (Optional) The contents of the .pem X.509 certificate file for the certificate. Either certificate_pem or certificate_wallet must be set.

  • certificate_wallet - (Optional) The contents of the Oracle Wallet certificate for use with SSL, provided as a base64-encoded String. Either certificate_pem or certificate_wallet must be set.

  • tags - (Optional) A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Attribute Reference

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

  • certificate_arn - The Amazon Resource Name (ARN) for the certificate.
  • tags_all - A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

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