nomad_acl_token

Manages an ACL token in Nomad.

Example Usage

Creating a token with limited policies:

resource "nomad_acl_token" "dakota" {
  name     = "Dakota"
  type     = "client"
  policies = ["dev", "qa"]
}

Creating a global token that will be replicated to all regions:

resource "nomad_acl_token" "dakota" {
  name     = "Dakota"
  type     = "client"
  policies = ["dev", "qa"]
  global   = true
}

Creating a token with full access to the cluster:

resource "nomad_acl_token" "iman" {
  name = "Iman"
  type = "management"
}

Accessing the token:

resource "nomad_acl_token" "token" {
  type     = "client"
  policies = ["dev"]
}

output "nomad_token" {
  value = nomad_acl_token.token.secret_id
}

Argument Reference

The following arguments are supported:

In addition to the above arguments, the following attributes are exported and can be referenced: