Skip to content

Commit

Permalink
Workaround: sleep 30s before assigning role
Browse files Browse the repository at this point in the history
  • Loading branch information
bingosummer committed Oct 27, 2018
1 parent 8c4c943 commit ba67f79
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 30"
}
}

resource "azurerm_role_assignment" "assignment" {
Expand Down

0 comments on commit ba67f79

Please sign in to comment.