github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/website/source/docs/providers/aws/r/dms_certificate.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_dms_certificate" 4 sidebar_current: "docs-aws-resource-dms-certificate" 5 description: |- 6 Provides a DMS (Data Migration Service) certificate resource. 7 --- 8 9 # aws\_dms\_certificate 10 11 Provides a DMS (Data Migration Service) certificate resource. DMS certificates can be created, deleted, and imported. 12 13 ## Example Usage 14 15 ``` 16 # Create a new certificate 17 resource "aws_dms_certificate" "test" { 18 certificate_id = "test-dms-certificate-tf" 19 certificate_pem = "..." 20 } 21 ``` 22 23 ## Argument Reference 24 25 The following arguments are supported: 26 27 * `certificate_id` - (Required) The certificate identifier. 28 29 - Must contain from 1 to 255 alphanumeric characters and hyphens. 30 31 * `certificate_pem` - (Optional) The contents of the .pem X.509 certificate file for the certificate. Either `certificate_pem` or `certificate_wallet` must be set. 32 * `certificate_wallet` - (Optional) The contents of the Oracle Wallet certificate for use with SSL. Either `certificate_pem` or `certificate_wallet` must be set. 33 34 ## Attributes Reference 35 36 The following attributes are exported: 37 38 * `certificate_arn` - The Amazon Resource Name (ARN) for the certificate. 39 40 ## Import 41 42 Certificates can be imported using the `certificate_arn`, e.g. 43 44 ``` 45 $ terraform import aws_dms_certificate.test arn:aws:dms:us-west-2:123456789:cert:xxxxxxxxxx 46 ```