tls_private_key

Nivis Nix constructor for the tls_private_key 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, algorithm, ecdsa_curve ? null, rsa_bits ? null, overrides ? {} }
Required arguments
  • algorithm
Optional arguments
  • ecdsa_curve (defaults to null)
  • rsa_bits (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • id
  • private_key_openssh
  • private_key_pem
  • private_key_pem_pkcs8
  • public_key_fingerprint_md5
  • public_key_fingerprint_sha256
  • public_key_openssh
  • public_key_pem
Example
tls_private_key {
  name = "private_key";
  algorithm = …;  # required
}

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