Skip to content

Commit

Permalink
infra: update principal id references
Browse files Browse the repository at this point in the history
  • Loading branch information
davidweisse committed Oct 2, 2024
1 parent fe160cd commit 7d3409c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions infra/azure-peerpods/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ resource "azuread_service_principal" "sp" {
resource "azurerm_role_assignment" "ra_vm_contributor" {
scope = azurerm_resource_group.rg.id
role_definition_name = "Virtual Machine Contributor"
principal_id = azuread_service_principal.sp.id
principal_id = azuread_service_principal.sp.object_id
}

resource "azurerm_role_assignment" "ra_reader" {
scope = azurerm_resource_group.rg.id
role_definition_name = "Reader"
principal_id = azuread_service_principal.sp.id
principal_id = azuread_service_principal.sp.object_id
}

resource "azurerm_role_assignment" "ra_network_contributor" {
scope = azurerm_resource_group.rg.id
role_definition_name = "Network Contributor"
principal_id = azuread_service_principal.sp.id
principal_id = azuread_service_principal.sp.object_id
}

resource "azuread_application_federated_identity_credential" "federated_credentials" {
Expand All @@ -85,7 +85,7 @@ resource "azuread_application_federated_identity_credential" "federated_credenti
resource "azurerm_role_assignment" "ra_image" {
scope = data.azurerm_resource_group.rg_podvm_image.id
role_definition_name = "Reader"
principal_id = azuread_service_principal.sp.id
principal_id = azuread_service_principal.sp.object_id
}

resource "azuread_application_password" "cred" {
Expand Down

0 comments on commit 7d3409c

Please sign in to comment.