Skip to content

Commit cb5cfd1

Browse files
committed
fix: pass replicator_rg_enabled from top level
1 parent c958b66 commit cb5cfd1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Added privilege escalation prevention policy for replicator
1313
- New configuration option `workload_identity_federation` to create federated credentials. Unset by default.
1414
- New configuration option `create_passwords` to enable/disable creation of password credentials. Defaults to `true`.
15+
- Fixed enabling resource group creation permission for replicator when using top level module.
1516

1617
## [v0.2.0]
1718

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ module "replicator_service_principal" {
4949
count = var.replicator_enabled || var.replicator_rg_enabled ? 1 : 0
5050
source = "./modules/meshcloud-replicator-service-principal/"
5151

52+
replicator_rg_enabled = var.replicator_rg_enabled
53+
5254
service_principal_name = var.replicator_service_principal_name
5355
custom_role_scope = data.azurerm_management_group.replicator_custom_role_scope.id
5456
assignment_scopes = local.replicator_assignment_scopes

0 commit comments

Comments
 (0)