0
0
llucycodes42
The code creates a TLS certificate request with the name "my-description-${myResourceName}" and specifies the key algorithm as ECDSA and the private key file as "private_key.pem". The subject field specifies the common name for the certificate as "example.com" and the organization field specifies the name of the company issuing the certificate.
Shortcut: tf_tls_cert_request
resource "tls_cert_request" "${myResourceName}" {
name = "my-${myResourceName}"
description = "my-description-${myResourceName}"
key_algorithm = "ECDSA"
private_key_pem = "\${file(\"private_key.pem\")}"
subject {
common_name = "example.com"
organization = "ACME Examples, Inc"
}
}