ionoscloud_certificate
Creates and manages a certificate.
Manages a Certificate on IonosCloud.
Example Usage
resource "ionoscloud_certificate" "cert" {
name = "add_name_here"
certificate = "${file("path_to_cert")}"
certificate_chain = "${file("path_to_cert_chain")}"
private_key = "${file("path_to_private_key")}"
}NOTE: You can also provide the values as multiline strings, as seen below:
resource "ionoscloud_certificate" "cert" {
name = "add_name_here"
certificate = <<EOT
-----BEGIN CERTIFICATE-----
cert_body_here
-----END CERTIFICATE-----
EOT
certificate_chain = "${file("path_to_cert_chain")}"
private_key = "${file("path_to_private_key")}"
}Argument Reference
The following arguments are supported:
name- (Required)[string] The certificate namecertificate- (Required)[string] The certificate body. Pem encoded. Immutable.private_key- (Required)[string] The certificate private key. Immutable. Sensitive.certificate_chain- (Optional)[string] The certificate chain. Pem encoded. Immutable.
Import
Resource certificate can be imported using the resource id, e.g.
terraform import ionoscloud_certificate.mycert certificate uuidLast updated
