How to Create Custom Azure Service Bus Roles for Both Queue and Topic with Different Permissions in Terraform?

174 Views Asked by At

I am working on a Terraform project that involves creating custom roles for Azure Service Bus resources. Specifically, I need to create a single custom role that covers both a Service Bus Queue and a Topic, but granting different permissions to each resource.

Is there a way to achieve this using Terraform modules or any other method? I would appreciate any code examples or guidance on how to structure the Terraform configuration to accomplish this task efficiently.

Thank you!

I have attempted to create separate custom roles for the Queue and Topic, but that resulted in duplicated code, which I want to avoid for better maintainability. It duplicated at a point that theres no advantage of using the custom role than the built-in roles

0

There are 0 best solutions below