nomad_acl_policy

Manages an ACL policy registered in Nomad.

Example Usage

Registering a policy from a HCL file:

resource "nomad_acl_policy" "dev" {
  name        = "dev"
  description = "Submit jobs to the dev environment."
  rules_hcl   = file("${path.module}/dev.hcl")
}

Registering a policy from inline HCL:

resource "nomad_acl_policy" "dev" {
  name        = "dev"
  description = "Submit jobs to the dev environment."

  rules_hcl = <<EOT
namespace "dev" {
  policy = "write"
}
EOT
}

Argument Reference

The following arguments are supported:

JobACL

The job_acl block is used to associate the ACL policy with a given namespace, job, group, or task. Refer to Workload Associated ACL Policies for more information. The following arguments are supported.