Skip to content

terraform-do-modules/terraform-digitalocean-certificate

 
 

Terraform DigitalOcean SSL Certificate

Provides a DigitalOcean Certificate resource that allows you to manage certificates.

Latest Release tfsec Licence


Prerequisites

This module has a few dependencies:

IMPORTANT: Since the master branch used in source varies based on new modifications, we suggest that you use the release versions here.

Here are examples of how you can use this module in your inventory structure:

custom-certificate

    module "custom_certificate" {
    source             = "terraform-do-modules/certificate/digitalocean"
    version            = "1.0.0"
    certificate_name   = "test"
    private_key        = "./../../private_key.pem"
    leaf_certificate   = "./../../cert.pem"
    certificate_chain  = "./../../fullchain.pem"
  }

lets-encrypt-certificate

    module "lets_encrypt_certificate" {
    source                   = "terraform-do-modules/certificate/digitalocean"
    version                  = "1.0.0"
    certificate_name         = "test"
    domain_names             = ["clouddrove.ca"]
  }

Inputs

Name Description Type Default Required
certificate_chain Path of certificate chain. string "" no
certificate_name The name of the certificate for identification. string "" no
certificate_type The type of certificate to provision string "lets_encrypt" no
custom_certificate A boolean flag to enable/disable custom_certificate. bool false no
domain_names List of fully qualified domain names (FQDNs) for which the certificate will be issued. The domains must be managed using DigitalOcean's DNS. Only valid when type is lets_encrypt. list(any) [] no
enabled Flag to control the resources creation. bool true no
leaf_certificate Path of certificate body. string "" no
private_key Path of private key. string "" no
type The type of certificate to provision string "custom" no

Outputs

Name Description
id The unique ID of the certificate.
name The name of the certificate.
not_after The expiration date of the certificate.
sha1_fingerprint The SHA-1 fingerprint of the certificate.
uuid The UUID of the certificate

Feedback

If you come accross a bug or have any feedback, please log it in our issue tracker, or feel free to drop us an email at hello@clouddrove.com.

If you have found it worth your time, go ahead and give us a ★ on our GitHub!

About us

At CloudDrove, we offer expert guidance, implementation support and services to help organisations accelerate their journey to the cloud. Our services include docker and container orchestration, cloud migration and adoption, infrastructure automation, application modernisation and remediation, and performance engineering.

We are The Cloud Experts!


We ❤️ Open Source and you can check out our other modules to get help with your new Cloud ideas.