fix: fix rolename

- had duplicate role
- change policy name to match approle
- updated ttl as packer builds can take some time
This commit is contained in:
Ben Vincent 2025-01-11 21:08:18 +11:00
parent 99b643b458
commit 2d345cc63b
2 changed files with 3 additions and 6 deletions

View File

@ -1,12 +1,12 @@
resource "vault_approle_auth_backend_role" "packer_builder" { resource "vault_approle_auth_backend_role" "packer_builder" {
role_name = "terraform_nomad" role_name = "packer_builder"
bind_secret_id = false bind_secret_id = false
token_policies = [ token_policies = [
"default_access", "default_access",
"packer_builder", "packer_builder",
] ]
token_ttl = 60 token_ttl = 300 # builds can take a few minutes
token_max_ttl = 120 token_max_ttl = 600
token_bound_cidrs = [ token_bound_cidrs = [
"10.10.12.200/32", "10.10.12.200/32",
"198.18.13.67/32", "198.18.13.67/32",

View File

@ -1,3 +0,0 @@
path "kv/data/service/packer/builder/env" {
capabilities = ["read"]
}