Skip to content

Commit

Permalink
Workaround: sleep 60s before assigning role
Browse files Browse the repository at this point in the history
  • Loading branch information
bingosummer committed Oct 27, 2018
1 parent 01f2c42 commit 449435b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions terraform/user_assigned_identity.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ resource "azurerm_user_assigned_identity" "identity" {
resource_group_name = "${azurerm_resource_group.bosh_resource_group.name}"
location = "${var.location}"
name = "${var.env_name}"

# wait 30s for server replication before attempting role assignment creation
provisioner "local-exec" {
command = "sleep 60"
}
}

resource "azurerm_role_assignment" "assignment" {
Expand Down

0 comments on commit 449435b

Please sign in to comment.