Provides a DMS (Data Migration Service) certificate resource. DMS certificates can be created, deleted, and imported.
# Create a new certificate
resource "aws_dms_certificate" "test" {
certificate_id = "test-dms-certificate-tf"
certificate_pem = "..."
tags = {
Name = "test"
}
}
This resource supports the following arguments:
certificate_id
- (Required) The certificate identifier.
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.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.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