-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AVM Question/Feedback]: managed identity/RBAC dependency loop after AVM migration #3894
Comments
Hey @sinedied, |
@AlexanderSehr thanks for your reply. I went with what you suggested, implementing the role assignment separately. What's bothering me though is that I end up duplicating some of the logic/code existing in the AVM(as child module), which means more maintenance. This issue is not specific to my project thought, as such dependency loops frequently appears in architecture with services related to each other, for example when handling Managed Identity/RBAC (like in my case), env variables or networking. Currently, AVM modules implement these only through their main interface, but if child modules were published this would allow separating the assignment without leaving out of the AVM realm/versioning. For example, my case could be solved by accessing the CosmosDB child module for the SQL role assignment. In the AVM FAQ, it's said that child module aren't currently published, but I think this could be helpful for such use cases and composability. |
Hey @sinedied, As it so happens you're also not the first one asking for the child-modules to be published, but are in good company:
There are certain manual steps (like registering every module before its first version is published) in the process of publishing a module to the public registry that have been preventing us from adding this feature (which we already did implement in the CARML CI [AVM CI's bigger predecessor], be it 'only' for private registries). We're currently working on a PoC to work around / lift some of these limitations and can hopefully offer this capability later this year 🤞 We're already on route to prepare for this future capability. For example, we're about to release a spec that asks owners to always add the |
Warning Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly. Tip
|
Caution **This issue requires the AVM Core Team's (@Azure/avm-core-team-technical-bicep) immediate attention as it hasn't been responded to within 6 business days. ** Tip
|
Thanks for the details update, I'll close this issue now to avoid further warnings there's already an existing issue. |
Much appreciated @sinedied, we'll keep you posted :) |
Check for previous/existing GitHub issues
Description
My app create resources (ie SWA, Functions API, Cosmos DB, OpenAI), and Managed Identity/RBAC creates cross dependencies, for example:
Before AVM I was fine, as I set up these in 3 resources:
But migrating to AVM I'm stuck, because the SQL role can only be set up as part of Cosmos DB module and not separately (its a cosmos submodule that cannot be accessed directly, as stated in AVM FAQ).
Now I have a dependency loop that I cannot solve, using only AVM modules.
Is there an obvious way to solve this that I missed?
The text was updated successfully, but these errors were encountered: