From 6347d587dcd32215e3dfbef1bc5e3e151260ee93 Mon Sep 17 00:00:00 2001 From: Joel Cressy Date: Thu, 28 Sep 2023 02:24:51 -0500 Subject: [PATCH] chore: revive configs --- layers/config/vault_config.tf | 10 ++++++++++ .../vault_identity_ghactions_vault-config.tf | 11 ----------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/layers/config/vault_config.tf b/layers/config/vault_config.tf index aba1333..5881063 100644 --- a/layers/config/vault_config.tf +++ b/layers/config/vault_config.tf @@ -6,4 +6,14 @@ variable "vault_bootstrap_token" { module "vault-config" { source = "../../modules/vault-config" vault_bootstrap_token = var.vault_bootstrap_token +} + +import { + id = "eba0c66d-6133-7751-f438-346122ac3e84" + to = "vault-config.vault_identity_entity.ghactions_vault-config_rw" +} + +import{ + id = "5f4dc8aa-1826-70ea-b2f4-0018b5d5a133" + to = "vault-config.vault_identity_entity_alias.ghactions_vault-config_main" } \ No newline at end of file diff --git a/modules/vault-config/vault_identity_ghactions_vault-config.tf b/modules/vault-config/vault_identity_ghactions_vault-config.tf index e3e18de..93d48e1 100644 --- a/modules/vault-config/vault_identity_ghactions_vault-config.tf +++ b/modules/vault-config/vault_identity_ghactions_vault-config.tf @@ -1,19 +1,8 @@ -import { - id = "eba0c66d-6133-7751-f438-346122ac3e84" - to = "vault_identity_entity.ghactions_vault-config_rw" -} - resource "vault_identity_entity" "ghactions_vault-config_rw" { name = "ghactions_vault-config_rw" policies = ["default", vault_policy.terraform-token.name, vault_policy.admin-all.name] } - -import{ - id = "5f4dc8aa-1826-70ea-b2f4-0018b5d5a133" - to = "vault_identity_entity_alias.ghactions_vault-config_main" -} - resource "vault_identity_entity_alias" "ghactions_vault-config_main" { name = "repo:jtcressy-home/vault-config:environment:vault-config" mount_accessor = vault_jwt_auth_backend.jwt.accessor