Skip to content

Commit

Permalink
Merge pull request #3 from isovalent/pr/ayuspin/update-resources-args
Browse files Browse the repository at this point in the history
fix azuread_application_password and azurerm_role_assignment args
  • Loading branch information
ayuspin authored Oct 4, 2024
2 parents 2eb05da + 0b80d4e commit a2615ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ resource "azuread_service_principal" "main" {

// Create role assignment for the Azure AD service principal.
resource "azurerm_role_assignment" "main" {
principal_id = azuread_service_principal.main.id
principal_id = azuread_service_principal.main.object_id
role_definition_name = var.role
scope = data.azurerm_subscription.main.id
}

// Create a password (client secret) for the Azure AD application.
resource "azuread_application_password" "main" {
application_id = azuread_application.main.object_id
application_id = azuread_application.main.id
end_date_relative = "8640h"
}

0 comments on commit a2615ad

Please sign in to comment.