Skip to content

Commit

Permalink
azure-ci: In role binding use name reference
Browse files Browse the repository at this point in the history
Currently the hardcoded name is used for role binding. This commit
changes to use the name reference used at one place.

Fixes #911

Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
  • Loading branch information
surajssd authored and kartikjoshi21 committed May 11, 2023
1 parent b27f1ba commit be24a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci-infra/azure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ resource "azurerm_role_definition" "caa_ci_provisioner" {

resource "azurerm_role_assignment" "ci_custom_role_binding" {
scope = data.azurerm_subscription.current.id
role_definition_name = "Azure CAA CI Provisioner"
role_definition_name = azurerm_role_definition.caa_ci_provisioner.name
principal_id = azurerm_user_assigned_identity.gh_action_user_identity.principal_id
}

Expand Down

0 comments on commit be24a54

Please sign in to comment.