Date: 2025-02-12 16:58:42
Score: 2
Natty:
Use the data provider cosmosdb_sql_role_definition
to get the id.
And then in your azurerm_cosmosdb_sql_role_assignment
use a reference:
role_definition_id = data.azurerm_cosmosdb_sql_role_definition.cosmos_role_readwrite.id
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/cosmosdb_sql_role_definition
Reasons:
- Probably link only (1):
- Low length (0.5):
- Has code block (-0.5):
- Low reputation (1):
Posted by: Bombenleger