orchestration-tests/nomad/acls/nomad_policies.tf

19 lines
536 B
Terraform
Raw Normal View History

resource "nomad_acl_policy" "anon_policy" {
name = "anonymous"
description = "Anon RO"
2022-08-23 17:31:03 +00:00
rules_hcl = file("${path.module}/nomad-anon-policy.hcl")
}
resource "nomad_acl_policy" "admin" {
name = "admin"
description = "Admin RW for admins"
rules_hcl = file("${path.module}/nomad-admin-policy.hcl")
}
# TODO: (security) Limit this scope
resource "nomad_acl_policy" "deploy" {
name = "deploy"
2022-08-23 17:31:03 +00:00
description = "Write for job deployments"
rules_hcl = file("${path.module}/nomad-deploy-policy.hcl")
}