Fix Dependencies for azurerm_cosmosdb_sql_role_definition
All Submissions:
- [YES] Have you added an explanation of what your changes do and why you'd like us to include them?
- [NO] I have updated the documentation accordingly.
- [YES] My code follows the code style of this project.
Current Behavior or Linked Issues
Terraform data sources need to be read during terraform apply. The data source azurerm_cosmosdb_sql_role_definition can only be read after the cosmos DB resource is created. If missing the dependency, terraform apply will fail due to timeout reading azurerm_cosmosdb_sql_role_definition data source. Error: Sql Role Definition: (Name "00000000-0000-0000-0000-000000000002" / Database Account Name "db account name" / Resource Group "rg name") was not found
Does this introduce a breaking change?
- [NO]
Other information
This issue only happens on the first time the cosmos DB account is prvisioned.
Edited by Yukuo Wang