diff --git a/terraform/user_assigned_identity.tf b/terraform/user_assigned_identity.tf index cd512b3..f436db5 100644 --- a/terraform/user_assigned_identity.tf +++ b/terraform/user_assigned_identity.tf @@ -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" {