resource "nomad_job" "postgres-server" { jobspec = file("${path.module}/postgres.nomad") # Block until deployed as there are servics dependent on this one detach = false } resource "nomad_acl_policy" "secrets_postgres" { name = "secrets-postgres" description = "Give access to Postgres secrets" rules_hcl = <