Skip to content

Commit 4dd8f6a

Browse files
committed
refactor(aks): rename shared Key Vault resource
1 parent 01775e6 commit 4dd8f6a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

examples/aks/locals.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
locals {
22
# Parameters for the resources that are created outside this code, but still on the Azure subscription where the DevOps Stack will be deployed.
33
default_resource_group = "YOUR_DEFAULT_RESOURCE_GROUP" # The default resource group where the Key Vault with the Azure AD application credentials is located.
4-
default_key_vault = "YOUR_KEY_VAULT_NAME" # The name of the Key Vault with the Azure AD application credentials.
4+
shared_key_vault_name = "YOUR_KEY_VAULT_NAME" # The name of the Key Vault with the Azure AD application credentials.
55
oidc_application_name = "YOUR_APPLICATION_NAME" # The name of the Azure AD application that will be used for OIDC authentication. cluster_admins_group_object_id = "38a1908d-0ccd-4acc-99d5-7f0228289752"
66
cluster_admins_group_object_id = "YOUR_CLUSTER_ADMINS_GROUP_OBJECT_ID"
77

examples/aks/oidc.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
data "azurerm_key_vault" "default" {
2-
name = local.default_key_vault
1+
data "azurerm_key_vault" "shared_key_vault" {
2+
name = local.shared_key_vault_name
33
resource_group_name = local.default_resource_group
44
}
55

66
data "azurerm_key_vault_secret" "aad_application_object_id" {
7-
key_vault_id = data.azurerm_key_vault.default.id
7+
key_vault_id = data.azurerm_key_vault.shared_key_vault.id
88
name = "${local.oidc_application_name}-application-object-id"
99
}
1010
data "azurerm_key_vault_secret" "aad_application_client_id" {
11-
key_vault_id = data.azurerm_key_vault.default.id
11+
key_vault_id = data.azurerm_key_vault.shared_key_vault.id
1212
name = "${local.oidc_application_name}-application-client-id"
1313
}
1414
data "azurerm_key_vault_secret" "aad_application_client_secret" {
15-
key_vault_id = data.azurerm_key_vault.default.id
15+
key_vault_id = data.azurerm_key_vault.shared_key_vault.id
1616
name = "${local.oidc_application_name}-application-client-secret"
1717
}
1818

0 commit comments

Comments
 (0)