-
Notifications
You must be signed in to change notification settings - Fork 1
/
key_vault_secrets.tf
27 lines (24 loc) · 1.02 KB
/
key_vault_secrets.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
resource "azurerm_key_vault_secret" "arm_subscription_id" {
name = "arm-subscription-id"
value = data.azurerm_subscription.current.subscription_id
key_vault_id = azurerm_key_vault.terraform.id
depends_on = [ azurerm_role_assignment.key_vault_admin ]
}
resource "azurerm_key_vault_secret" "arm_tenant_id" {
name = "arm-tenant-id"
value = data.azurerm_subscription.current.tenant_id
key_vault_id = azurerm_key_vault.terraform.id
depends_on = [ azurerm_role_assignment.key_vault_admin ]
}
resource "azurerm_key_vault_secret" "arm_client_id" {
name = "arm-client-id"
value = azuread_application.estf.application_id
key_vault_id = azurerm_key_vault.terraform.id
depends_on = [ azurerm_role_assignment.key_vault_admin ]
}
resource "azurerm_key_vault_secret" "arm_client_secret" {
name = "arm-client-secret"
value = random_password.spn_password.result
key_vault_id = azurerm_key_vault.terraform.id
depends_on = [ azurerm_role_assignment.key_vault_admin ]
}