nomad_job

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

Constructor
{
  name,
  jobspec,
  deregister_on_destroy ? null,
  deregister_on_id_change ? null,
  detach ? null,
  id ? null,
  json ? null,
  policy_override ? null,
  preserve_counts ? null,
  purge_on_destroy ? null,
  read_allocation_ids ? null,
  rerun_if_dead ? null,
  hcl2 ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments
  • jobspec
Optional arguments
  • deregister_on_destroy (defaults to null)
  • deregister_on_id_change (defaults to null)
  • detach (defaults to null)
  • id (defaults to null)
  • json (defaults to null)
  • policy_override (defaults to null)
  • preserve_counts (defaults to null)
  • purge_on_destroy (defaults to null)
  • read_allocation_ids (defaults to null)
  • rerun_if_dead (defaults to null)
  • hcl2 (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • all_at_once
  • allocation_ids
  • constraints
  • create_index
  • datacenters
  • deployment_id
  • deployment_status
  • modify_index
  • name
  • namespace
  • parent_id
  • periodic_config
  • priority
  • region
  • stable
  • status
  • status_description
  • stop
  • submit_time
  • task_groups
  • type
  • update_strategy
  • version
Example
nomad_job {
  name = "job";
  jobspec = …;  # required
}

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