nomad_acl_policy
Manages an ACL policy registered in Nomad.
Example Usage
Registering a policy from an 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:
-
name
(string: <required>)
- A unique name for the policy. -
rules_hcl
(string: <required>)
- The contents of the policy to register, as HCL or JSON. -
description
(string: "")
- A description of the policy.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/nomad/r/acl_policy.html