Terraform snippets

    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 "" 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 = ""
           organization = "ACME Examples, Inc"
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.