tls_locally_signed_cert

Nivis Nix constructor for the tls_locally_signed_cert resource (provider tls). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.

Constructor
{
  name,
  allowed_uses,
  ca_cert_pem,
  cert_request_pem,
  validity_period_hours,
  ca_private_key_pem ? null,
  ca_private_key_pem_wo ? null,
  ca_private_key_pem_wo_version ? null,
  early_renewal_hours ? null,
  is_ca_certificate ? null,
  max_path_length ? null,
  set_subject_key_id ? null,
  overrides ? {}
}
Required arguments
  • allowed_uses
  • ca_cert_pem
  • cert_request_pem
  • validity_period_hours
Optional arguments
  • ca_private_key_pem (defaults to null)
  • ca_private_key_pem_wo (defaults to null)
  • ca_private_key_pem_wo_version (defaults to null)
  • early_renewal_hours (defaults to null)
  • is_ca_certificate (defaults to null)
  • max_path_length (defaults to null)
  • set_subject_key_id (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • ca_key_algorithm
  • cert_pem
  • id
  • ready_for_renewal
  • validity_end_time
  • validity_start_time
Example
tls_locally_signed_cert {
  name = "locally_signed_cert";
  allowed_uses = …;  # required
  ca_cert_pem = …;  # required
  cert_request_pem = …;  # required
  validity_period_hours = …;  # required
}

The reference for every provider is generated from the provider's own schema, not copied from its documentation.