tls_private_keyNivis 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 tonull)rsa_bits(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
idprivate_key_opensshprivate_key_pemprivate_key_pem_pkcs8public_key_fingerprint_md5public_key_fingerprint_sha256public_key_opensshpublic_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.