Last active
January 22, 2017 01:50
-
-
Save nickithewatt/ec996fdcb806495055414ffed86a6fdd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------------------------------------------------------- | |
# 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