subcategory | layout | page_title | description |
---|---|---|---|
DMS (Database Migration) |
aws |
AWS: aws_dms_certificate |
Provides a DMS (Data Migration Service) certificate resource. |
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.
# 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.- 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. Eithercertificate_pem
orcertificate_wallet
must be set. -
certificate_wallet
- (Optional) The contents of the Oracle Wallet certificate for use with SSL, provided as a base64-encoded String. Eithercertificate_pem
orcertificate_wallet
must be set. -
tags
- (Optional) A map of tags to assign to the resource. If configured with a providerdefault_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 providerdefault_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