Skip to content

Commit

Permalink
do not store things as resources to keyvault because reasons .__.
Browse files Browse the repository at this point in the history
  • Loading branch information
kahlstrm committed Nov 7, 2023
1 parent 637849b commit acc9a46
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
13 changes: 0 additions & 13 deletions modules/keyvault/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,3 @@ data "azurerm_key_vault_secret" "github_app_key" {
key_vault_id = azurerm_key_vault.keyvault.id
depends_on = [azurerm_key_vault_access_policy.admin, azurerm_key_vault_access_policy.current]
}

resource "azurerm_key_vault_secret" "postgres_admin_username" {
key_vault_id = azurerm_key_vault.keyvault.id
name = "postgres-admin-username"
value = var.tikweb_postgres_admin_username
depends_on = [azurerm_key_vault_access_policy.admin, azurerm_key_vault_access_policy.current]
}
resource "azurerm_key_vault_secret" "postgres_admin_password" {
key_vault_id = azurerm_key_vault.keyvault.id
name = "postgres-admin-password"
value = var.tikweb_postgres_admin_password
depends_on = [azurerm_key_vault_access_policy.admin, azurerm_key_vault_access_policy.current]
}
7 changes: 0 additions & 7 deletions modules/keyvault/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,3 @@ output "tenttiarkisto_django_secret_key" {
output "github_app_key" {
value = data.azurerm_key_vault_secret.github_app_key.value
}
output "postgres_admin_password" {
value = azurerm_key_vault_secret.postgres_admin_password
}

output "postgres_admin_username" {
value = azurerm_key_vault_secret.postgres_admin_username
}

0 comments on commit acc9a46

Please sign in to comment.