» acme_registration

The acme_registration resource can be used to create and manage accounts on an ACME server. Once registered, the same private key that has been used for registration can be used to request authorizations for certificates.

» Example

The following creates an account off of a private key generated with the tls_private_key resource.

provider "acme" {
  server_url = "https://acme-staging-v02.api.letsencrypt.org/directory"

resource "tls_private_key" "private_key" {
  algorithm = "RSA"

resource "acme_registration" "reg" {
  account_key_pem = "${tls_private_key.private_key.private_key_pem}"
  email_address   = "nobody@example.com"

» Argument Reference

The resource takes the following arguments:

  • account_key_pem (Required) - The private key used to identity the account.
  • email_address (Required) - The contact email address for the account.

» Attribute Reference

The following attributes are exported:

  • id: The original full URL of the account.
  • registration_url: The current full URL of the account.