consul_peering

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

Constructor
{
  name,
  peer_name,
  peering_token,
  id ? null,
  meta ? null,
  partition ? null,
  overrides ? {}
}
Required arguments
  • peer_name
  • peering_token
Optional arguments
  • id (defaults to null)
  • meta (defaults to null)
  • partition (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • deleted_at
  • peer_ca_pems
  • peer_id
  • peer_server_addresses
  • peer_server_name
  • state
Example
consul_peering {
  name = "peering";
  peer_name = …;  # required
  peering_token = …;  # required
}

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