RMFR3 - Resource Groups
ID: RMFR3 - Category: Composition - Resource Groups
A resource module MUST NOT create a Resource Group for resources that require them.
In the case that a Resource Group is required, a module MUST have an input (scope or variable):
- In Bicep the
targetScopeMUST be set toresourceGroupor not specified (which means default toresourceGroupscope). - For Terraform, the resource group is supplied via the
parent_idvariable defined by TFRMFR1. Terraform resource modules MUST NOT expose aresource_group_name(orresource_group_resource_id) variable.
Scopes will be covered further in the respective language specific specifications.