Skip to content

Commit

Permalink
Remove other example
Browse files Browse the repository at this point in the history
  • Loading branch information
frasermolyneux committed Oct 6, 2023
1 parent c657786 commit c6746bf
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions terraform/pim-direct-keyvault.tf
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@

resource "time_static" "keyvault_contributor" {}

resource "azurerm_pim_eligible_role_assignment" "keyvault_contributor" {
for_each = toset(var.locations)

scope = azurerm_key_vault.kv_01[each.value].id
role_definition_id = "${data.azurerm_subscription.primary.id}${data.azurerm_role_definition.contributor.id}"
principal_id = "3270dd31-29ac-486d-8a16-e9179660c8d7" // For demo purposes - this is fmolyneux@microsoft.com

schedule {
start_date_time = time_static.keyvault_contributor.rfc3339
expiration {
duration_days = 30
}
}
}

resource "time_static" "keyvault_secretofficer" {}

resource "azurerm_pim_eligible_role_assignment" "keyvault_secretofficer" {
Expand Down

0 comments on commit c6746bf

Please sign in to comment.