Skip to content

Instantly share code, notes, and snippets.

@nickithewatt
Last active January 22, 2017 01:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickithewatt/ec996fdcb806495055414ffed86a6fdd to your computer and use it in GitHub Desktop.
Save nickithewatt/ec996fdcb806495055414ffed86a6fdd to your computer and use it in GitHub Desktop.
# ----------------------------------------------------------------
# Inputs required to do an initial registration (aka create an
# account) with the ACME provider (Let's Encrypt)
# ----------------------------------------------------------------
# Create an on the fly private key for the registration
# (not the certificate). Could simply be imported as well
resource "tls_private_key" "acme_registration_private_key" {
algorithm = "RSA"
}
# Set up a registration using the registration private key
resource "acme_registration" "reg" {
server_url = "${var.acme_server_url}"
account_key_pem = "${tls_private_key.acme_registration_private_key.private_key_pem}"
email_address = "${var.acme_registration_email}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment