published on Tuesday, Apr 21, 2026 by Pulumi
published on Tuesday, Apr 21, 2026 by Pulumi
Manages a job registered in Nomad.
This can be used to initialize your cluster with system jobs, common services, and more. In day to day Nomad use it is common for developers to submit jobs to Nomad directly, such as for general app deployment. In addition to these apps, a Nomad cluster often runs core system services that are ideally setup during infrastructure creation. This resource is ideal for the latter type of job, but can be used to manage any job within Nomad.
Create Job Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Job(name: string, args: JobArgs, opts?: CustomResourceOptions);@overload
def Job(resource_name: str,
args: JobArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Job(resource_name: str,
opts: Optional[ResourceOptions] = None,
jobspec: Optional[str] = None,
deregister_on_destroy: Optional[bool] = None,
deregister_on_id_change: Optional[bool] = None,
detach: Optional[bool] = None,
hcl2: Optional[JobHcl2Args] = None,
json: Optional[bool] = None,
policy_override: Optional[bool] = None,
preserve_counts: Optional[bool] = None,
purge_on_destroy: Optional[bool] = None,
read_allocation_ids: Optional[bool] = None,
rerun_if_dead: Optional[bool] = None)func NewJob(ctx *Context, name string, args JobArgs, opts ...ResourceOption) (*Job, error)public Job(string name, JobArgs args, CustomResourceOptions? opts = null)type: nomad:Job
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args JobArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args JobArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args JobArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args JobArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args JobArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var jobResource = new Nomad.Job("jobResource", new()
{
Jobspec = "string",
DeregisterOnDestroy = false,
DeregisterOnIdChange = false,
Detach = false,
Hcl2 = new Nomad.Inputs.JobHcl2Args
{
AllowFs = false,
Vars =
{
{ "string", "string" },
},
},
Json = false,
PolicyOverride = false,
PreserveCounts = false,
PurgeOnDestroy = false,
RerunIfDead = false,
});
example, err := nomad.NewJob(ctx, "jobResource", &nomad.JobArgs{
Jobspec: pulumi.String("string"),
DeregisterOnDestroy: pulumi.Bool(false),
DeregisterOnIdChange: pulumi.Bool(false),
Detach: pulumi.Bool(false),
Hcl2: &nomad.JobHcl2Args{
AllowFs: pulumi.Bool(false),
Vars: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
Json: pulumi.Bool(false),
PolicyOverride: pulumi.Bool(false),
PreserveCounts: pulumi.Bool(false),
PurgeOnDestroy: pulumi.Bool(false),
RerunIfDead: pulumi.Bool(false),
})
var jobResource = new Job("jobResource", JobArgs.builder()
.jobspec("string")
.deregisterOnDestroy(false)
.deregisterOnIdChange(false)
.detach(false)
.hcl2(JobHcl2Args.builder()
.allowFs(false)
.vars(Map.of("string", "string"))
.build())
.json(false)
.policyOverride(false)
.preserveCounts(false)
.purgeOnDestroy(false)
.rerunIfDead(false)
.build());
job_resource = nomad.Job("jobResource",
jobspec="string",
deregister_on_destroy=False,
deregister_on_id_change=False,
detach=False,
hcl2={
"allow_fs": False,
"vars": {
"string": "string",
},
},
json=False,
policy_override=False,
preserve_counts=False,
purge_on_destroy=False,
rerun_if_dead=False)
const jobResource = new nomad.Job("jobResource", {
jobspec: "string",
deregisterOnDestroy: false,
deregisterOnIdChange: false,
detach: false,
hcl2: {
allowFs: false,
vars: {
string: "string",
},
},
json: false,
policyOverride: false,
preserveCounts: false,
purgeOnDestroy: false,
rerunIfDead: false,
});
type: nomad:Job
properties:
deregisterOnDestroy: false
deregisterOnIdChange: false
detach: false
hcl2:
allowFs: false
vars:
string: string
jobspec: string
json: false
policyOverride: false
preserveCounts: false
purgeOnDestroy: false
rerunIfDead: false
Job Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Job resource accepts the following input properties:
- Jobspec string
(string: <required>)- The contents of the jobspec to register.- Deregister
On boolDestroy (boolean: true)- Determines if the job will be deregistered when this resource is destroyed in Terraform.- Deregister
On boolId Change (boolean: true)- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- Detach bool
(boolean: true)- If true, the provider will return immediately after creating or updating, instead of monitoring.- Hcl2
Job
Hcl2 (block: optional)- Options for the HCL2 jobspec parser.- Json bool
(boolean: false)- Set this totrueif your jobspec is structured with JSON instead of the default HCL.- Policy
Override bool (boolean: false)- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- Preserve
Counts bool (boolean: false)- If true, preserves the current task group counts already stored in Nomad during job registration instead of applying the counts from the submitted jobspec.- Purge
On boolDestroy (boolean: false)- Set this to true if you want the job to be purged when the resource is destroyed.- Read
Allocation boolIds - Rerun
If boolDead (boolean: false)- Set this to true to force the job to run again if its status isdead.
- Jobspec string
(string: <required>)- The contents of the jobspec to register.- Deregister
On boolDestroy (boolean: true)- Determines if the job will be deregistered when this resource is destroyed in Terraform.- Deregister
On boolId Change (boolean: true)- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- Detach bool
(boolean: true)- If true, the provider will return immediately after creating or updating, instead of monitoring.- Hcl2
Job
Hcl2Args (block: optional)- Options for the HCL2 jobspec parser.- Json bool
(boolean: false)- Set this totrueif your jobspec is structured with JSON instead of the default HCL.- Policy
Override bool (boolean: false)- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- Preserve
Counts bool (boolean: false)- If true, preserves the current task group counts already stored in Nomad during job registration instead of applying the counts from the submitted jobspec.- Purge
On boolDestroy (boolean: false)- Set this to true if you want the job to be purged when the resource is destroyed.- Read
Allocation boolIds - Rerun
If boolDead (boolean: false)- Set this to true to force the job to run again if its status isdead.
- jobspec String
(string: <required>)- The contents of the jobspec to register.- deregister
On BooleanDestroy (boolean: true)- Determines if the job will be deregistered when this resource is destroyed in Terraform.- deregister
On BooleanId Change (boolean: true)- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- detach Boolean
(boolean: true)- If true, the provider will return immediately after creating or updating, instead of monitoring.- hcl2
Job
Hcl2 (block: optional)- Options for the HCL2 jobspec parser.- json Boolean
(boolean: false)- Set this totrueif your jobspec is structured with JSON instead of the default HCL.- policy
Override Boolean (boolean: false)- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- preserve
Counts Boolean (boolean: false)- If true, preserves the current task group counts already stored in Nomad during job registration instead of applying the counts from the submitted jobspec.- purge
On BooleanDestroy (boolean: false)- Set this to true if you want the job to be purged when the resource is destroyed.- read
Allocation BooleanIds - rerun
If BooleanDead (boolean: false)- Set this to true to force the job to run again if its status isdead.
- jobspec string
(string: <required>)- The contents of the jobspec to register.- deregister
On booleanDestroy (boolean: true)- Determines if the job will be deregistered when this resource is destroyed in Terraform.- deregister
On booleanId Change (boolean: true)- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- detach boolean
(boolean: true)- If true, the provider will return immediately after creating or updating, instead of monitoring.- hcl2
Job
Hcl2 (block: optional)- Options for the HCL2 jobspec parser.- json boolean
(boolean: false)- Set this totrueif your jobspec is structured with JSON instead of the default HCL.- policy
Override boolean (boolean: false)- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- preserve
Counts boolean (boolean: false)- If true, preserves the current task group counts already stored in Nomad during job registration instead of applying the counts from the submitted jobspec.- purge
On booleanDestroy (boolean: false)- Set this to true if you want the job to be purged when the resource is destroyed.- read
Allocation booleanIds - rerun
If booleanDead (boolean: false)- Set this to true to force the job to run again if its status isdead.
- jobspec str
(string: <required>)- The contents of the jobspec to register.- deregister_
on_ booldestroy (boolean: true)- Determines if the job will be deregistered when this resource is destroyed in Terraform.- deregister_
on_ boolid_ change (boolean: true)- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- detach bool
(boolean: true)- If true, the provider will return immediately after creating or updating, instead of monitoring.- hcl2
Job
Hcl2Args (block: optional)- Options for the HCL2 jobspec parser.- json bool
(boolean: false)- Set this totrueif your jobspec is structured with JSON instead of the default HCL.- policy_
override bool (boolean: false)- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- preserve_
counts bool (boolean: false)- If true, preserves the current task group counts already stored in Nomad during job registration instead of applying the counts from the submitted jobspec.- purge_
on_ booldestroy (boolean: false)- Set this to true if you want the job to be purged when the resource is destroyed.- read_
allocation_ boolids - rerun_
if_ booldead (boolean: false)- Set this to true to force the job to run again if its status isdead.
- jobspec String
(string: <required>)- The contents of the jobspec to register.- deregister
On BooleanDestroy (boolean: true)- Determines if the job will be deregistered when this resource is destroyed in Terraform.- deregister
On BooleanId Change (boolean: true)- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- detach Boolean
(boolean: true)- If true, the provider will return immediately after creating or updating, instead of monitoring.- hcl2 Property Map
(block: optional)- Options for the HCL2 jobspec parser.- json Boolean
(boolean: false)- Set this totrueif your jobspec is structured with JSON instead of the default HCL.- policy
Override Boolean (boolean: false)- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- preserve
Counts Boolean (boolean: false)- If true, preserves the current task group counts already stored in Nomad during job registration instead of applying the counts from the submitted jobspec.- purge
On BooleanDestroy (boolean: false)- Set this to true if you want the job to be purged when the resource is destroyed.- read
Allocation BooleanIds - rerun
If BooleanDead (boolean: false)- Set this to true to force the job to run again if its status isdead.
Outputs
All input properties are implicitly available as output properties. Additionally, the Job resource produces the following output properties:
- All
At boolOnce (boolean)- Whether the scheduler can make partial placements on oversubscribed nodes.- Allocation
Ids List<string> (list of strings)- Allocation IDs associated with the job whenreadAllocationIds = true.- Constraints
List<Job
Constraint> (list of maps)- Job constraints.- Create
Index int (integer)- The job creation index.- Datacenters List<string>
(set of strings)- The target datacenters for the job.- Deployment
Id string (string)- Ifdetach = false, the deployment associated with the last create or update, if one exists.- Deployment
Status string (string)- Ifdetach = false, the status for the deployment associated with the last create or update, if one exists.- Id string
- The provider-assigned unique ID for this managed resource.
- Modify
Index string (string)- Integer that increments for each change. Used to detect any changes between plan and apply.- Name string
(string)- Volume name.- Namespace string
(string)- The namespace of the job, as derived from the jobspec.- Parent
Id string (string)- The parent job ID, if applicable.- Periodic
Configs List<JobPeriodic Config> (list of maps)- The job's periodic configuration.- Priority int
(integer)- The job priority for scheduling and resource access.- Region string
(string)- The target region for the job.- Stable bool
(boolean)- Whether the job is stable.- Status string
(string)- The current status of the job.- Status
Description string (string)- Additional status information returned by Nomad.- Stop bool
(boolean)- Whether the job is stopped.- Submit
Time string (integer)- The Unix timestamp when the job was submitted.- Task
Groups List<JobTask Group> (list of maps)- A list of the job's task groups.- Type string
(string)- Volume type.- Update
Strategies List<JobUpdate Strategy> (list of maps)- Effective update strategy for the task group.- Version int
(integer)- The current job version.
- All
At boolOnce (boolean)- Whether the scheduler can make partial placements on oversubscribed nodes.- Allocation
Ids []string (list of strings)- Allocation IDs associated with the job whenreadAllocationIds = true.- Constraints
[]Job
Constraint (list of maps)- Job constraints.- Create
Index int (integer)- The job creation index.- Datacenters []string
(set of strings)- The target datacenters for the job.- Deployment
Id string (string)- Ifdetach = false, the deployment associated with the last create or update, if one exists.- Deployment
Status string (string)- Ifdetach = false, the status for the deployment associated with the last create or update, if one exists.- Id string
- The provider-assigned unique ID for this managed resource.
- Modify
Index string (string)- Integer that increments for each change. Used to detect any changes between plan and apply.- Name string
(string)- Volume name.- Namespace string
(string)- The namespace of the job, as derived from the jobspec.- Parent
Id string (string)- The parent job ID, if applicable.- Periodic
Configs []JobPeriodic Config (list of maps)- The job's periodic configuration.- Priority int
(integer)- The job priority for scheduling and resource access.- Region string
(string)- The target region for the job.- Stable bool
(boolean)- Whether the job is stable.- Status string
(string)- The current status of the job.- Status
Description string (string)- Additional status information returned by Nomad.- Stop bool
(boolean)- Whether the job is stopped.- Submit
Time string (integer)- The Unix timestamp when the job was submitted.- Task
Groups []JobTask Group (list of maps)- A list of the job's task groups.- Type string
(string)- Volume type.- Update
Strategies []JobUpdate Strategy (list of maps)- Effective update strategy for the task group.- Version int
(integer)- The current job version.
- all
At BooleanOnce (boolean)- Whether the scheduler can make partial placements on oversubscribed nodes.- allocation
Ids List<String> (list of strings)- Allocation IDs associated with the job whenreadAllocationIds = true.- constraints
List<Job
Constraint> (list of maps)- Job constraints.- create
Index Integer (integer)- The job creation index.- datacenters List<String>
(set of strings)- The target datacenters for the job.- deployment
Id String (string)- Ifdetach = false, the deployment associated with the last create or update, if one exists.- deployment
Status String (string)- Ifdetach = false, the status for the deployment associated with the last create or update, if one exists.- id String
- The provider-assigned unique ID for this managed resource.
- modify
Index String (string)- Integer that increments for each change. Used to detect any changes between plan and apply.- name String
(string)- Volume name.- namespace String
(string)- The namespace of the job, as derived from the jobspec.- parent
Id String (string)- The parent job ID, if applicable.- periodic
Configs List<JobPeriodic Config> (list of maps)- The job's periodic configuration.- priority Integer
(integer)- The job priority for scheduling and resource access.- region String
(string)- The target region for the job.- stable Boolean
(boolean)- Whether the job is stable.- status String
(string)- The current status of the job.- status
Description String (string)- Additional status information returned by Nomad.- stop Boolean
(boolean)- Whether the job is stopped.- submit
Time String (integer)- The Unix timestamp when the job was submitted.- task
Groups List<JobTask Group> (list of maps)- A list of the job's task groups.- type String
(string)- Volume type.- update
Strategies List<JobUpdate Strategy> (list of maps)- Effective update strategy for the task group.- version Integer
(integer)- The current job version.
- all
At booleanOnce (boolean)- Whether the scheduler can make partial placements on oversubscribed nodes.- allocation
Ids string[] (list of strings)- Allocation IDs associated with the job whenreadAllocationIds = true.- constraints
Job
Constraint[] (list of maps)- Job constraints.- create
Index number (integer)- The job creation index.- datacenters string[]
(set of strings)- The target datacenters for the job.- deployment
Id string (string)- Ifdetach = false, the deployment associated with the last create or update, if one exists.- deployment
Status string (string)- Ifdetach = false, the status for the deployment associated with the last create or update, if one exists.- id string
- The provider-assigned unique ID for this managed resource.
- modify
Index string (string)- Integer that increments for each change. Used to detect any changes between plan and apply.- name string
(string)- Volume name.- namespace string
(string)- The namespace of the job, as derived from the jobspec.- parent
Id string (string)- The parent job ID, if applicable.- periodic
Configs JobPeriodic Config[] (list of maps)- The job's periodic configuration.- priority number
(integer)- The job priority for scheduling and resource access.- region string
(string)- The target region for the job.- stable boolean
(boolean)- Whether the job is stable.- status string
(string)- The current status of the job.- status
Description string (string)- Additional status information returned by Nomad.- stop boolean
(boolean)- Whether the job is stopped.- submit
Time string (integer)- The Unix timestamp when the job was submitted.- task
Groups JobTask Group[] (list of maps)- A list of the job's task groups.- type string
(string)- Volume type.- update
Strategies JobUpdate Strategy[] (list of maps)- Effective update strategy for the task group.- version number
(integer)- The current job version.
- all_
at_ boolonce (boolean)- Whether the scheduler can make partial placements on oversubscribed nodes.- allocation_
ids Sequence[str] (list of strings)- Allocation IDs associated with the job whenreadAllocationIds = true.- constraints
Sequence[Job
Constraint] (list of maps)- Job constraints.- create_
index int (integer)- The job creation index.- datacenters Sequence[str]
(set of strings)- The target datacenters for the job.- deployment_
id str (string)- Ifdetach = false, the deployment associated with the last create or update, if one exists.- deployment_
status str (string)- Ifdetach = false, the status for the deployment associated with the last create or update, if one exists.- id str
- The provider-assigned unique ID for this managed resource.
- modify_
index str (string)- Integer that increments for each change. Used to detect any changes between plan and apply.- name str
(string)- Volume name.- namespace str
(string)- The namespace of the job, as derived from the jobspec.- parent_
id str (string)- The parent job ID, if applicable.- periodic_
configs Sequence[JobPeriodic Config] (list of maps)- The job's periodic configuration.- priority int
(integer)- The job priority for scheduling and resource access.- region str
(string)- The target region for the job.- stable bool
(boolean)- Whether the job is stable.- status str
(string)- The current status of the job.- status_
description str (string)- Additional status information returned by Nomad.- stop bool
(boolean)- Whether the job is stopped.- submit_
time str (integer)- The Unix timestamp when the job was submitted.- task_
groups Sequence[JobTask Group] (list of maps)- A list of the job's task groups.- type str
(string)- Volume type.- update_
strategies Sequence[JobUpdate Strategy] (list of maps)- Effective update strategy for the task group.- version int
(integer)- The current job version.
- all
At BooleanOnce (boolean)- Whether the scheduler can make partial placements on oversubscribed nodes.- allocation
Ids List<String> (list of strings)- Allocation IDs associated with the job whenreadAllocationIds = true.- constraints List<Property Map>
(list of maps)- Job constraints.- create
Index Number (integer)- The job creation index.- datacenters List<String>
(set of strings)- The target datacenters for the job.- deployment
Id String (string)- Ifdetach = false, the deployment associated with the last create or update, if one exists.- deployment
Status String (string)- Ifdetach = false, the status for the deployment associated with the last create or update, if one exists.- id String
- The provider-assigned unique ID for this managed resource.
- modify
Index String (string)- Integer that increments for each change. Used to detect any changes between plan and apply.- name String
(string)- Volume name.- namespace String
(string)- The namespace of the job, as derived from the jobspec.- parent
Id String (string)- The parent job ID, if applicable.- periodic
Configs List<Property Map> (list of maps)- The job's periodic configuration.- priority Number
(integer)- The job priority for scheduling and resource access.- region String
(string)- The target region for the job.- stable Boolean
(boolean)- Whether the job is stable.- status String
(string)- The current status of the job.- status
Description String (string)- Additional status information returned by Nomad.- stop Boolean
(boolean)- Whether the job is stopped.- submit
Time String (integer)- The Unix timestamp when the job was submitted.- task
Groups List<Property Map> (list of maps)- A list of the job's task groups.- type String
(string)- Volume type.- update
Strategies List<Property Map> (list of maps)- Effective update strategy for the task group.- version Number
(integer)- The current job version.
Look up Existing Job Resource
Get an existing Job resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: JobState, opts?: CustomResourceOptions): Job@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
all_at_once: Optional[bool] = None,
allocation_ids: Optional[Sequence[str]] = None,
constraints: Optional[Sequence[JobConstraintArgs]] = None,
create_index: Optional[int] = None,
datacenters: Optional[Sequence[str]] = None,
deployment_id: Optional[str] = None,
deployment_status: Optional[str] = None,
deregister_on_destroy: Optional[bool] = None,
deregister_on_id_change: Optional[bool] = None,
detach: Optional[bool] = None,
hcl2: Optional[JobHcl2Args] = None,
jobspec: Optional[str] = None,
json: Optional[bool] = None,
modify_index: Optional[str] = None,
name: Optional[str] = None,
namespace: Optional[str] = None,
parent_id: Optional[str] = None,
periodic_configs: Optional[Sequence[JobPeriodicConfigArgs]] = None,
policy_override: Optional[bool] = None,
preserve_counts: Optional[bool] = None,
priority: Optional[int] = None,
purge_on_destroy: Optional[bool] = None,
read_allocation_ids: Optional[bool] = None,
region: Optional[str] = None,
rerun_if_dead: Optional[bool] = None,
stable: Optional[bool] = None,
status: Optional[str] = None,
status_description: Optional[str] = None,
stop: Optional[bool] = None,
submit_time: Optional[str] = None,
task_groups: Optional[Sequence[JobTaskGroupArgs]] = None,
type: Optional[str] = None,
update_strategies: Optional[Sequence[JobUpdateStrategyArgs]] = None,
version: Optional[int] = None) -> Jobfunc GetJob(ctx *Context, name string, id IDInput, state *JobState, opts ...ResourceOption) (*Job, error)public static Job Get(string name, Input<string> id, JobState? state, CustomResourceOptions? opts = null)public static Job get(String name, Output<String> id, JobState state, CustomResourceOptions options)resources: _: type: nomad:Job get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- All
At boolOnce (boolean)- Whether the scheduler can make partial placements on oversubscribed nodes.- Allocation
Ids List<string> (list of strings)- Allocation IDs associated with the job whenreadAllocationIds = true.- Constraints
List<Job
Constraint> (list of maps)- Job constraints.- Create
Index int (integer)- The job creation index.- Datacenters List<string>
(set of strings)- The target datacenters for the job.- Deployment
Id string (string)- Ifdetach = false, the deployment associated with the last create or update, if one exists.- Deployment
Status string (string)- Ifdetach = false, the status for the deployment associated with the last create or update, if one exists.- Deregister
On boolDestroy (boolean: true)- Determines if the job will be deregistered when this resource is destroyed in Terraform.- Deregister
On boolId Change (boolean: true)- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- Detach bool
(boolean: true)- If true, the provider will return immediately after creating or updating, instead of monitoring.- Hcl2
Job
Hcl2 (block: optional)- Options for the HCL2 jobspec parser.- Jobspec string
(string: <required>)- The contents of the jobspec to register.- Json bool
(boolean: false)- Set this totrueif your jobspec is structured with JSON instead of the default HCL.- Modify
Index string (string)- Integer that increments for each change. Used to detect any changes between plan and apply.- Name string
(string)- Volume name.- Namespace string
(string)- The namespace of the job, as derived from the jobspec.- Parent
Id string (string)- The parent job ID, if applicable.- Periodic
Configs List<JobPeriodic Config> (list of maps)- The job's periodic configuration.- Policy
Override bool (boolean: false)- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- Preserve
Counts bool (boolean: false)- If true, preserves the current task group counts already stored in Nomad during job registration instead of applying the counts from the submitted jobspec.- Priority int
(integer)- The job priority for scheduling and resource access.- Purge
On boolDestroy (boolean: false)- Set this to true if you want the job to be purged when the resource is destroyed.- Read
Allocation boolIds - Region string
(string)- The target region for the job.- Rerun
If boolDead (boolean: false)- Set this to true to force the job to run again if its status isdead.- Stable bool
(boolean)- Whether the job is stable.- Status string
(string)- The current status of the job.- Status
Description string (string)- Additional status information returned by Nomad.- Stop bool
(boolean)- Whether the job is stopped.- Submit
Time string (integer)- The Unix timestamp when the job was submitted.- Task
Groups List<JobTask Group> (list of maps)- A list of the job's task groups.- Type string
(string)- Volume type.- Update
Strategies List<JobUpdate Strategy> (list of maps)- Effective update strategy for the task group.- Version int
(integer)- The current job version.
- All
At boolOnce (boolean)- Whether the scheduler can make partial placements on oversubscribed nodes.- Allocation
Ids []string (list of strings)- Allocation IDs associated with the job whenreadAllocationIds = true.- Constraints
[]Job
Constraint Args (list of maps)- Job constraints.- Create
Index int (integer)- The job creation index.- Datacenters []string
(set of strings)- The target datacenters for the job.- Deployment
Id string (string)- Ifdetach = false, the deployment associated with the last create or update, if one exists.- Deployment
Status string (string)- Ifdetach = false, the status for the deployment associated with the last create or update, if one exists.- Deregister
On boolDestroy (boolean: true)- Determines if the job will be deregistered when this resource is destroyed in Terraform.- Deregister
On boolId Change (boolean: true)- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- Detach bool
(boolean: true)- If true, the provider will return immediately after creating or updating, instead of monitoring.- Hcl2
Job
Hcl2Args (block: optional)- Options for the HCL2 jobspec parser.- Jobspec string
(string: <required>)- The contents of the jobspec to register.- Json bool
(boolean: false)- Set this totrueif your jobspec is structured with JSON instead of the default HCL.- Modify
Index string (string)- Integer that increments for each change. Used to detect any changes between plan and apply.- Name string
(string)- Volume name.- Namespace string
(string)- The namespace of the job, as derived from the jobspec.- Parent
Id string (string)- The parent job ID, if applicable.- Periodic
Configs []JobPeriodic Config Args (list of maps)- The job's periodic configuration.- Policy
Override bool (boolean: false)- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- Preserve
Counts bool (boolean: false)- If true, preserves the current task group counts already stored in Nomad during job registration instead of applying the counts from the submitted jobspec.- Priority int
(integer)- The job priority for scheduling and resource access.- Purge
On boolDestroy (boolean: false)- Set this to true if you want the job to be purged when the resource is destroyed.- Read
Allocation boolIds - Region string
(string)- The target region for the job.- Rerun
If boolDead (boolean: false)- Set this to true to force the job to run again if its status isdead.- Stable bool
(boolean)- Whether the job is stable.- Status string
(string)- The current status of the job.- Status
Description string (string)- Additional status information returned by Nomad.- Stop bool
(boolean)- Whether the job is stopped.- Submit
Time string (integer)- The Unix timestamp when the job was submitted.- Task
Groups []JobTask Group Args (list of maps)- A list of the job's task groups.- Type string
(string)- Volume type.- Update
Strategies []JobUpdate Strategy Args (list of maps)- Effective update strategy for the task group.- Version int
(integer)- The current job version.
- all
At BooleanOnce (boolean)- Whether the scheduler can make partial placements on oversubscribed nodes.- allocation
Ids List<String> (list of strings)- Allocation IDs associated with the job whenreadAllocationIds = true.- constraints
List<Job
Constraint> (list of maps)- Job constraints.- create
Index Integer (integer)- The job creation index.- datacenters List<String>
(set of strings)- The target datacenters for the job.- deployment
Id String (string)- Ifdetach = false, the deployment associated with the last create or update, if one exists.- deployment
Status String (string)- Ifdetach = false, the status for the deployment associated with the last create or update, if one exists.- deregister
On BooleanDestroy (boolean: true)- Determines if the job will be deregistered when this resource is destroyed in Terraform.- deregister
On BooleanId Change (boolean: true)- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- detach Boolean
(boolean: true)- If true, the provider will return immediately after creating or updating, instead of monitoring.- hcl2
Job
Hcl2 (block: optional)- Options for the HCL2 jobspec parser.- jobspec String
(string: <required>)- The contents of the jobspec to register.- json Boolean
(boolean: false)- Set this totrueif your jobspec is structured with JSON instead of the default HCL.- modify
Index String (string)- Integer that increments for each change. Used to detect any changes between plan and apply.- name String
(string)- Volume name.- namespace String
(string)- The namespace of the job, as derived from the jobspec.- parent
Id String (string)- The parent job ID, if applicable.- periodic
Configs List<JobPeriodic Config> (list of maps)- The job's periodic configuration.- policy
Override Boolean (boolean: false)- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- preserve
Counts Boolean (boolean: false)- If true, preserves the current task group counts already stored in Nomad during job registration instead of applying the counts from the submitted jobspec.- priority Integer
(integer)- The job priority for scheduling and resource access.- purge
On BooleanDestroy (boolean: false)- Set this to true if you want the job to be purged when the resource is destroyed.- read
Allocation BooleanIds - region String
(string)- The target region for the job.- rerun
If BooleanDead (boolean: false)- Set this to true to force the job to run again if its status isdead.- stable Boolean
(boolean)- Whether the job is stable.- status String
(string)- The current status of the job.- status
Description String (string)- Additional status information returned by Nomad.- stop Boolean
(boolean)- Whether the job is stopped.- submit
Time String (integer)- The Unix timestamp when the job was submitted.- task
Groups List<JobTask Group> (list of maps)- A list of the job's task groups.- type String
(string)- Volume type.- update
Strategies List<JobUpdate Strategy> (list of maps)- Effective update strategy for the task group.- version Integer
(integer)- The current job version.
- all
At booleanOnce (boolean)- Whether the scheduler can make partial placements on oversubscribed nodes.- allocation
Ids string[] (list of strings)- Allocation IDs associated with the job whenreadAllocationIds = true.- constraints
Job
Constraint[] (list of maps)- Job constraints.- create
Index number (integer)- The job creation index.- datacenters string[]
(set of strings)- The target datacenters for the job.- deployment
Id string (string)- Ifdetach = false, the deployment associated with the last create or update, if one exists.- deployment
Status string (string)- Ifdetach = false, the status for the deployment associated with the last create or update, if one exists.- deregister
On booleanDestroy (boolean: true)- Determines if the job will be deregistered when this resource is destroyed in Terraform.- deregister
On booleanId Change (boolean: true)- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- detach boolean
(boolean: true)- If true, the provider will return immediately after creating or updating, instead of monitoring.- hcl2
Job
Hcl2 (block: optional)- Options for the HCL2 jobspec parser.- jobspec string
(string: <required>)- The contents of the jobspec to register.- json boolean
(boolean: false)- Set this totrueif your jobspec is structured with JSON instead of the default HCL.- modify
Index string (string)- Integer that increments for each change. Used to detect any changes between plan and apply.- name string
(string)- Volume name.- namespace string
(string)- The namespace of the job, as derived from the jobspec.- parent
Id string (string)- The parent job ID, if applicable.- periodic
Configs JobPeriodic Config[] (list of maps)- The job's periodic configuration.- policy
Override boolean (boolean: false)- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- preserve
Counts boolean (boolean: false)- If true, preserves the current task group counts already stored in Nomad during job registration instead of applying the counts from the submitted jobspec.- priority number
(integer)- The job priority for scheduling and resource access.- purge
On booleanDestroy (boolean: false)- Set this to true if you want the job to be purged when the resource is destroyed.- read
Allocation booleanIds - region string
(string)- The target region for the job.- rerun
If booleanDead (boolean: false)- Set this to true to force the job to run again if its status isdead.- stable boolean
(boolean)- Whether the job is stable.- status string
(string)- The current status of the job.- status
Description string (string)- Additional status information returned by Nomad.- stop boolean
(boolean)- Whether the job is stopped.- submit
Time string (integer)- The Unix timestamp when the job was submitted.- task
Groups JobTask Group[] (list of maps)- A list of the job's task groups.- type string
(string)- Volume type.- update
Strategies JobUpdate Strategy[] (list of maps)- Effective update strategy for the task group.- version number
(integer)- The current job version.
- all_
at_ boolonce (boolean)- Whether the scheduler can make partial placements on oversubscribed nodes.- allocation_
ids Sequence[str] (list of strings)- Allocation IDs associated with the job whenreadAllocationIds = true.- constraints
Sequence[Job
Constraint Args] (list of maps)- Job constraints.- create_
index int (integer)- The job creation index.- datacenters Sequence[str]
(set of strings)- The target datacenters for the job.- deployment_
id str (string)- Ifdetach = false, the deployment associated with the last create or update, if one exists.- deployment_
status str (string)- Ifdetach = false, the status for the deployment associated with the last create or update, if one exists.- deregister_
on_ booldestroy (boolean: true)- Determines if the job will be deregistered when this resource is destroyed in Terraform.- deregister_
on_ boolid_ change (boolean: true)- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- detach bool
(boolean: true)- If true, the provider will return immediately after creating or updating, instead of monitoring.- hcl2
Job
Hcl2Args (block: optional)- Options for the HCL2 jobspec parser.- jobspec str
(string: <required>)- The contents of the jobspec to register.- json bool
(boolean: false)- Set this totrueif your jobspec is structured with JSON instead of the default HCL.- modify_
index str (string)- Integer that increments for each change. Used to detect any changes between plan and apply.- name str
(string)- Volume name.- namespace str
(string)- The namespace of the job, as derived from the jobspec.- parent_
id str (string)- The parent job ID, if applicable.- periodic_
configs Sequence[JobPeriodic Config Args] (list of maps)- The job's periodic configuration.- policy_
override bool (boolean: false)- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- preserve_
counts bool (boolean: false)- If true, preserves the current task group counts already stored in Nomad during job registration instead of applying the counts from the submitted jobspec.- priority int
(integer)- The job priority for scheduling and resource access.- purge_
on_ booldestroy (boolean: false)- Set this to true if you want the job to be purged when the resource is destroyed.- read_
allocation_ boolids - region str
(string)- The target region for the job.- rerun_
if_ booldead (boolean: false)- Set this to true to force the job to run again if its status isdead.- stable bool
(boolean)- Whether the job is stable.- status str
(string)- The current status of the job.- status_
description str (string)- Additional status information returned by Nomad.- stop bool
(boolean)- Whether the job is stopped.- submit_
time str (integer)- The Unix timestamp when the job was submitted.- task_
groups Sequence[JobTask Group Args] (list of maps)- A list of the job's task groups.- type str
(string)- Volume type.- update_
strategies Sequence[JobUpdate Strategy Args] (list of maps)- Effective update strategy for the task group.- version int
(integer)- The current job version.
- all
At BooleanOnce (boolean)- Whether the scheduler can make partial placements on oversubscribed nodes.- allocation
Ids List<String> (list of strings)- Allocation IDs associated with the job whenreadAllocationIds = true.- constraints List<Property Map>
(list of maps)- Job constraints.- create
Index Number (integer)- The job creation index.- datacenters List<String>
(set of strings)- The target datacenters for the job.- deployment
Id String (string)- Ifdetach = false, the deployment associated with the last create or update, if one exists.- deployment
Status String (string)- Ifdetach = false, the status for the deployment associated with the last create or update, if one exists.- deregister
On BooleanDestroy (boolean: true)- Determines if the job will be deregistered when this resource is destroyed in Terraform.- deregister
On BooleanId Change (boolean: true)- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- detach Boolean
(boolean: true)- If true, the provider will return immediately after creating or updating, instead of monitoring.- hcl2 Property Map
(block: optional)- Options for the HCL2 jobspec parser.- jobspec String
(string: <required>)- The contents of the jobspec to register.- json Boolean
(boolean: false)- Set this totrueif your jobspec is structured with JSON instead of the default HCL.- modify
Index String (string)- Integer that increments for each change. Used to detect any changes between plan and apply.- name String
(string)- Volume name.- namespace String
(string)- The namespace of the job, as derived from the jobspec.- parent
Id String (string)- The parent job ID, if applicable.- periodic
Configs List<Property Map> (list of maps)- The job's periodic configuration.- policy
Override Boolean (boolean: false)- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- preserve
Counts Boolean (boolean: false)- If true, preserves the current task group counts already stored in Nomad during job registration instead of applying the counts from the submitted jobspec.- priority Number
(integer)- The job priority for scheduling and resource access.- purge
On BooleanDestroy (boolean: false)- Set this to true if you want the job to be purged when the resource is destroyed.- read
Allocation BooleanIds - region String
(string)- The target region for the job.- rerun
If BooleanDead (boolean: false)- Set this to true to force the job to run again if its status isdead.- stable Boolean
(boolean)- Whether the job is stable.- status String
(string)- The current status of the job.- status
Description String (string)- Additional status information returned by Nomad.- stop Boolean
(boolean)- Whether the job is stopped.- submit
Time String (integer)- The Unix timestamp when the job was submitted.- task
Groups List<Property Map> (list of maps)- A list of the job's task groups.- type String
(string)- Volume type.- update
Strategies List<Property Map> (list of maps)- Effective update strategy for the task group.- version Number
(integer)- The current job version.
Supporting Types
JobConstraint, JobConstraintArgs
JobHcl2, JobHcl2Args
JobPeriodicConfig, JobPeriodicConfigArgs
- Enabled bool
(boolean)- Whether the periodic job is enabled. When disabled, scheduled runs and force launches are prevented.- Prohibit
Overlap bool (boolean)- Whether this job should wait until previous instances of the same job have completed before launching again.- Spec string
(string)- Cron expression configuring the interval at which the job is launched.- Spec
Type string (string)- Type of periodic specification, such ascron.- Timezone string
(string)- Time zone used to evaluate the next launch interval.
- Enabled bool
(boolean)- Whether the periodic job is enabled. When disabled, scheduled runs and force launches are prevented.- Prohibit
Overlap bool (boolean)- Whether this job should wait until previous instances of the same job have completed before launching again.- Spec string
(string)- Cron expression configuring the interval at which the job is launched.- Spec
Type string (string)- Type of periodic specification, such ascron.- Timezone string
(string)- Time zone used to evaluate the next launch interval.
- enabled Boolean
(boolean)- Whether the periodic job is enabled. When disabled, scheduled runs and force launches are prevented.- prohibit
Overlap Boolean (boolean)- Whether this job should wait until previous instances of the same job have completed before launching again.- spec String
(string)- Cron expression configuring the interval at which the job is launched.- spec
Type String (string)- Type of periodic specification, such ascron.- timezone String
(string)- Time zone used to evaluate the next launch interval.
- enabled boolean
(boolean)- Whether the periodic job is enabled. When disabled, scheduled runs and force launches are prevented.- prohibit
Overlap boolean (boolean)- Whether this job should wait until previous instances of the same job have completed before launching again.- spec string
(string)- Cron expression configuring the interval at which the job is launched.- spec
Type string (string)- Type of periodic specification, such ascron.- timezone string
(string)- Time zone used to evaluate the next launch interval.
- enabled bool
(boolean)- Whether the periodic job is enabled. When disabled, scheduled runs and force launches are prevented.- prohibit_
overlap bool (boolean)- Whether this job should wait until previous instances of the same job have completed before launching again.- spec str
(string)- Cron expression configuring the interval at which the job is launched.- spec_
type str (string)- Type of periodic specification, such ascron.- timezone str
(string)- Time zone used to evaluate the next launch interval.
- enabled Boolean
(boolean)- Whether the periodic job is enabled. When disabled, scheduled runs and force launches are prevented.- prohibit
Overlap Boolean (boolean)- Whether this job should wait until previous instances of the same job have completed before launching again.- spec String
(string)- Cron expression configuring the interval at which the job is launched.- spec
Type String (string)- Type of periodic specification, such ascron.- timezone String
(string)- Time zone used to evaluate the next launch interval.
JobTaskGroup, JobTaskGroupArgs
- Count int
(integer)- Task group count.- Meta Dictionary<string, string>
(map of strings)- Task group metadata.- Name string
(string)- Volume name.- Tasks
List<Job
Task Group Task> (list of maps)- Tasks in the task group.- Update
Strategies List<JobTask Group Update Strategy> (list of maps)- Effective update strategy for the task group.- Volumes
List<Job
Task Group Volume> (list of maps)- Volume requests for the task group.
- Count int
(integer)- Task group count.- Meta map[string]string
(map of strings)- Task group metadata.- Name string
(string)- Volume name.- Tasks
[]Job
Task Group Task (list of maps)- Tasks in the task group.- Update
Strategies []JobTask Group Update Strategy (list of maps)- Effective update strategy for the task group.- Volumes
[]Job
Task Group Volume (list of maps)- Volume requests for the task group.
- count Integer
(integer)- Task group count.- meta Map<String,String>
(map of strings)- Task group metadata.- name String
(string)- Volume name.- tasks
List<Job
Task Group Task> (list of maps)- Tasks in the task group.- update
Strategies List<JobTask Group Update Strategy> (list of maps)- Effective update strategy for the task group.- volumes
List<Job
Task Group Volume> (list of maps)- Volume requests for the task group.
- count number
(integer)- Task group count.- meta {[key: string]: string}
(map of strings)- Task group metadata.- name string
(string)- Volume name.- tasks
Job
Task Group Task[] (list of maps)- Tasks in the task group.- update
Strategies JobTask Group Update Strategy[] (list of maps)- Effective update strategy for the task group.- volumes
Job
Task Group Volume[] (list of maps)- Volume requests for the task group.
- count int
(integer)- Task group count.- meta Mapping[str, str]
(map of strings)- Task group metadata.- name str
(string)- Volume name.- tasks
Sequence[Job
Task Group Task] (list of maps)- Tasks in the task group.- update_
strategies Sequence[JobTask Group Update Strategy] (list of maps)- Effective update strategy for the task group.- volumes
Sequence[Job
Task Group Volume] (list of maps)- Volume requests for the task group.
- count Number
(integer)- Task group count.- meta Map<String>
(map of strings)- Task group metadata.- name String
(string)- Volume name.- tasks List<Property Map>
(list of maps)- Tasks in the task group.- update
Strategies List<Property Map> (list of maps)- Effective update strategy for the task group.- volumes List<Property Map>
(list of maps)- Volume requests for the task group.
JobTaskGroupTask, JobTaskGroupTaskArgs
- Driver string
(string)- Task driver.- Meta Dictionary<string, string>
(map of strings)- Task group metadata.- Name string
(string)- Volume name.- Volume
Mounts List<JobTask Group Task Volume Mount> (list of maps)- Task volume mounts.
- Driver string
(string)- Task driver.- Meta map[string]string
(map of strings)- Task group metadata.- Name string
(string)- Volume name.- Volume
Mounts []JobTask Group Task Volume Mount (list of maps)- Task volume mounts.
- driver String
(string)- Task driver.- meta Map<String,String>
(map of strings)- Task group metadata.- name String
(string)- Volume name.- volume
Mounts List<JobTask Group Task Volume Mount> (list of maps)- Task volume mounts.
- driver string
(string)- Task driver.- meta {[key: string]: string}
(map of strings)- Task group metadata.- name string
(string)- Volume name.- volume
Mounts JobTask Group Task Volume Mount[] (list of maps)- Task volume mounts.
- driver str
(string)- Task driver.- meta Mapping[str, str]
(map of strings)- Task group metadata.- name str
(string)- Volume name.- volume_
mounts Sequence[JobTask Group Task Volume Mount] (list of maps)- Task volume mounts.
- driver String
(string)- Task driver.- meta Map<String>
(map of strings)- Task group metadata.- name String
(string)- Volume name.- volume
Mounts List<Property Map> (list of maps)- Task volume mounts.
JobTaskGroupTaskVolumeMount, JobTaskGroupTaskVolumeMountArgs
- Destination string
(string)- Destination path inside the task.- Read
Only bool (boolean)- Whether the volume is read-only.- Volume string
(string)- Volume name.
- Destination string
(string)- Destination path inside the task.- Read
Only bool (boolean)- Whether the volume is read-only.- Volume string
(string)- Volume name.
- destination String
(string)- Destination path inside the task.- read
Only Boolean (boolean)- Whether the volume is read-only.- volume String
(string)- Volume name.
- destination string
(string)- Destination path inside the task.- read
Only boolean (boolean)- Whether the volume is read-only.- volume string
(string)- Volume name.
- destination str
(string)- Destination path inside the task.- read_
only bool (boolean)- Whether the volume is read-only.- volume str
(string)- Volume name.
- destination String
(string)- Destination path inside the task.- read
Only Boolean (boolean)- Whether the volume is read-only.- volume String
(string)- Volume name.
JobTaskGroupUpdateStrategy, JobTaskGroupUpdateStrategyArgs
- Auto
Revert bool (boolean)- Whether the job should automatically revert to the last stable job on deployment failure.- Canary int
(integer)- Number of canary allocations created before destructive updates continue.- Health
Check string (string)- Mechanism used to determine allocation health:checks,taskStates, ormanual.- Healthy
Deadline string (string)- Deadline by which the allocation must become healthy before it is marked unhealthy.- Max
Parallel int (integer)- Number of allocations within a task group that can be destructively updated at the same time. Setting0forces updates instead of deployments.- Min
Healthy stringTime (string)- Minimum time the allocation must be in the healthy state before further updates can proceed.- Stagger string
(string)- Delay between each set ofmaxParallelupdates when updating system jobs.
- Auto
Revert bool (boolean)- Whether the job should automatically revert to the last stable job on deployment failure.- Canary int
(integer)- Number of canary allocations created before destructive updates continue.- Health
Check string (string)- Mechanism used to determine allocation health:checks,taskStates, ormanual.- Healthy
Deadline string (string)- Deadline by which the allocation must become healthy before it is marked unhealthy.- Max
Parallel int (integer)- Number of allocations within a task group that can be destructively updated at the same time. Setting0forces updates instead of deployments.- Min
Healthy stringTime (string)- Minimum time the allocation must be in the healthy state before further updates can proceed.- Stagger string
(string)- Delay between each set ofmaxParallelupdates when updating system jobs.
- auto
Revert Boolean (boolean)- Whether the job should automatically revert to the last stable job on deployment failure.- canary Integer
(integer)- Number of canary allocations created before destructive updates continue.- health
Check String (string)- Mechanism used to determine allocation health:checks,taskStates, ormanual.- healthy
Deadline String (string)- Deadline by which the allocation must become healthy before it is marked unhealthy.- max
Parallel Integer (integer)- Number of allocations within a task group that can be destructively updated at the same time. Setting0forces updates instead of deployments.- min
Healthy StringTime (string)- Minimum time the allocation must be in the healthy state before further updates can proceed.- stagger String
(string)- Delay between each set ofmaxParallelupdates when updating system jobs.
- auto
Revert boolean (boolean)- Whether the job should automatically revert to the last stable job on deployment failure.- canary number
(integer)- Number of canary allocations created before destructive updates continue.- health
Check string (string)- Mechanism used to determine allocation health:checks,taskStates, ormanual.- healthy
Deadline string (string)- Deadline by which the allocation must become healthy before it is marked unhealthy.- max
Parallel number (integer)- Number of allocations within a task group that can be destructively updated at the same time. Setting0forces updates instead of deployments.- min
Healthy stringTime (string)- Minimum time the allocation must be in the healthy state before further updates can proceed.- stagger string
(string)- Delay between each set ofmaxParallelupdates when updating system jobs.
- auto_
revert bool (boolean)- Whether the job should automatically revert to the last stable job on deployment failure.- canary int
(integer)- Number of canary allocations created before destructive updates continue.- health_
check str (string)- Mechanism used to determine allocation health:checks,taskStates, ormanual.- healthy_
deadline str (string)- Deadline by which the allocation must become healthy before it is marked unhealthy.- max_
parallel int (integer)- Number of allocations within a task group that can be destructively updated at the same time. Setting0forces updates instead of deployments.- min_
healthy_ strtime (string)- Minimum time the allocation must be in the healthy state before further updates can proceed.- stagger str
(string)- Delay between each set ofmaxParallelupdates when updating system jobs.
- auto
Revert Boolean (boolean)- Whether the job should automatically revert to the last stable job on deployment failure.- canary Number
(integer)- Number of canary allocations created before destructive updates continue.- health
Check String (string)- Mechanism used to determine allocation health:checks,taskStates, ormanual.- healthy
Deadline String (string)- Deadline by which the allocation must become healthy before it is marked unhealthy.- max
Parallel Number (integer)- Number of allocations within a task group that can be destructively updated at the same time. Setting0forces updates instead of deployments.- min
Healthy StringTime (string)- Minimum time the allocation must be in the healthy state before further updates can proceed.- stagger String
(string)- Delay between each set ofmaxParallelupdates when updating system jobs.
JobTaskGroupVolume, JobTaskGroupVolumeArgs
JobUpdateStrategy, JobUpdateStrategyArgs
- Auto
Revert bool (boolean)- Whether the job should automatically revert to the last stable job on deployment failure.- Canary int
(integer)- Number of canary allocations created before destructive updates continue.- Health
Check string (string)- Mechanism used to determine allocation health:checks,taskStates, ormanual.- Healthy
Deadline string (string)- Deadline by which the allocation must become healthy before it is marked unhealthy.- Max
Parallel int (integer)- Number of allocations within a task group that can be destructively updated at the same time. Setting0forces updates instead of deployments.- Min
Healthy stringTime (string)- Minimum time the allocation must be in the healthy state before further updates can proceed.- Stagger string
(string)- Delay between each set ofmaxParallelupdates when updating system jobs.
- Auto
Revert bool (boolean)- Whether the job should automatically revert to the last stable job on deployment failure.- Canary int
(integer)- Number of canary allocations created before destructive updates continue.- Health
Check string (string)- Mechanism used to determine allocation health:checks,taskStates, ormanual.- Healthy
Deadline string (string)- Deadline by which the allocation must become healthy before it is marked unhealthy.- Max
Parallel int (integer)- Number of allocations within a task group that can be destructively updated at the same time. Setting0forces updates instead of deployments.- Min
Healthy stringTime (string)- Minimum time the allocation must be in the healthy state before further updates can proceed.- Stagger string
(string)- Delay between each set ofmaxParallelupdates when updating system jobs.
- auto
Revert Boolean (boolean)- Whether the job should automatically revert to the last stable job on deployment failure.- canary Integer
(integer)- Number of canary allocations created before destructive updates continue.- health
Check String (string)- Mechanism used to determine allocation health:checks,taskStates, ormanual.- healthy
Deadline String (string)- Deadline by which the allocation must become healthy before it is marked unhealthy.- max
Parallel Integer (integer)- Number of allocations within a task group that can be destructively updated at the same time. Setting0forces updates instead of deployments.- min
Healthy StringTime (string)- Minimum time the allocation must be in the healthy state before further updates can proceed.- stagger String
(string)- Delay between each set ofmaxParallelupdates when updating system jobs.
- auto
Revert boolean (boolean)- Whether the job should automatically revert to the last stable job on deployment failure.- canary number
(integer)- Number of canary allocations created before destructive updates continue.- health
Check string (string)- Mechanism used to determine allocation health:checks,taskStates, ormanual.- healthy
Deadline string (string)- Deadline by which the allocation must become healthy before it is marked unhealthy.- max
Parallel number (integer)- Number of allocations within a task group that can be destructively updated at the same time. Setting0forces updates instead of deployments.- min
Healthy stringTime (string)- Minimum time the allocation must be in the healthy state before further updates can proceed.- stagger string
(string)- Delay between each set ofmaxParallelupdates when updating system jobs.
- auto_
revert bool (boolean)- Whether the job should automatically revert to the last stable job on deployment failure.- canary int
(integer)- Number of canary allocations created before destructive updates continue.- health_
check str (string)- Mechanism used to determine allocation health:checks,taskStates, ormanual.- healthy_
deadline str (string)- Deadline by which the allocation must become healthy before it is marked unhealthy.- max_
parallel int (integer)- Number of allocations within a task group that can be destructively updated at the same time. Setting0forces updates instead of deployments.- min_
healthy_ strtime (string)- Minimum time the allocation must be in the healthy state before further updates can proceed.- stagger str
(string)- Delay between each set ofmaxParallelupdates when updating system jobs.
- auto
Revert Boolean (boolean)- Whether the job should automatically revert to the last stable job on deployment failure.- canary Number
(integer)- Number of canary allocations created before destructive updates continue.- health
Check String (string)- Mechanism used to determine allocation health:checks,taskStates, ormanual.- healthy
Deadline String (string)- Deadline by which the allocation must become healthy before it is marked unhealthy.- max
Parallel Number (integer)- Number of allocations within a task group that can be destructively updated at the same time. Setting0forces updates instead of deployments.- min
Healthy StringTime (string)- Minimum time the allocation must be in the healthy state before further updates can proceed.- stagger String
(string)- Delay between each set ofmaxParallelupdates when updating system jobs.
Import
ing Jobs
Jobs are imported using the pattern <job ID>@<namespace>.
$ terraform import nomad_job.example example@my-namespace
nomad_job.example: Importing from ID "example@my-namespace"...
nomad_job.example: Import prepared!
Prepared nomad_job for import
nomad_job.example: Refreshing state... [id=example@my-namespace]
Import successful!
The resources that were imported are shown above. These resources are now in
your Terraform state and will henceforth be managed by Terraform.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- HashiCorp Nomad pulumi/pulumi-nomad
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nomadTerraform Provider.
published on Tuesday, Apr 21, 2026 by Pulumi
