AWS DMS Certificate
This page shows how to write Terraform and CloudFormation for AWS DMS Certificate and write them securely.
aws_dms_certificate (Terraform)
The Certificate in AWS DMS can be configured in Terraform with the resource name aws_dms_certificate
. The following sections describe 3 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_dms_certificate" "this" {
certificate_id = var.certificate_id
certificate_pem = var.certificate_pem
certificate_wallet = var.certificate_wallet
}
resource "aws_dms_certificate" "this" {
count = var.create ? 1 : 0
certificate_id = var.certificate_id
certificate_pem = var.certificate_pem
certificate_wallet = var.certificate_wallet
resource "aws_dms_certificate" "test" {
certificate_id = "test-dms-certificate-tf"
certificate_pem = "..."
tags = {
Name = "test"
Parameters
-
certificate_arn
optional computed - string -
certificate_id
required - string -
certificate_pem
optional - string -
certificate_wallet
optional - string -
id
optional computed - string -
tags
optional - map from string to string
Explanation in Terraform Registry
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.
AWS::DMS::Certificate (CloudFormation)
The Certificate in DMS can be configured in CloudFormation with the resource name AWS::DMS::Certificate
. The following sections describe 10 examples of how to use the resource and its parameters.
Example Usage from GitHub
Type: AWS::DMS::Certificate
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html
Type: AWS::DMS::Certificate
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html
Type: AWS::DMS::Certificate
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html
Type: AWS::DMS::Certificate
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html
Type: AWS::DMS::Certificate
Description: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html
"AWS::DMS::Certificate": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html",
"Properties": {
"CertificateIdentifier": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html#cfn-dms-certificate-certificateidentifier",
"AWS::DMS::Certificate": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html",
"Properties": {
"CertificateIdentifier": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html#cfn-dms-certificate-certificateidentifier",
"AWS::DMS::Certificate": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html",
"Properties": {
"CertificateIdentifier": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html#cfn-dms-certificate-certificateidentifier",
"AWS::DMS::Certificate": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html",
"Properties": {
"CertificateIdentifier": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html#cfn-dms-certificate-certificateidentifier",
"AWS::DMS::Certificate": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html",
"Properties": {
"CertificateIdentifier": {
"Required": false,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-certificate.html#cfn-dms-certificate-certificateidentifier",
Parameters
-
CertificateIdentifier
optional - String -
CertificatePem
optional - String -
CertificateWallet
optional - String
Explanation in CloudFormation Registry
The
AWS::DMS::Certificate
resource creates an SSL certificate that encrypts connections between AWS DMS endpoints and the replication instance.
Frequently asked questions
What is AWS DMS Certificate?
AWS DMS Certificate is a resource for DMS of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS DMS Certificate?
For Terraform, the niveklabs/aws, kleytonhsantos/terraform-aws-dms and afonsoaugusto/terraform-aws-s3-webapp source code examples are useful. See the Terraform Example section for further details.
For CloudFormation, the awslabs/aws-service-catalog-products, awslabs/aws-service-catalog-products and awslabs/aws-service-catalog-products source code examples are useful. See the CloudFormation Example section for further details.