You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[azuread_client_config.current](https://registry.terraform.io/providers/hashicorp/azuread/2.18.0/docs/data-sources/client_config)| data source |
124
-
|[azurerm_management_group.root](https://registry.terraform.io/providers/hashicorp/azurerm/3.3.0/docs/data-sources/management_group)| data source |
122
+
|[azuread_client_config.current](https://registry.terraform.io/providers/hashicorp/azuread/2.46.0/docs/data-sources/client_config)| data source |
123
+
|[azurerm_management_group.metering_assignment_scopes](https://registry.terraform.io/providers/hashicorp/azurerm/3.81.0/docs/data-sources/management_group)| data source |
124
+
|[azurerm_management_group.replicator_assignment_scopes](https://registry.terraform.io/providers/hashicorp/azurerm/3.81.0/docs/data-sources/management_group)| data source |
125
+
|[azurerm_management_group.replicator_custom_role_scope](https://registry.terraform.io/providers/hashicorp/azurerm/3.81.0/docs/data-sources/management_group)| data source |
125
126
126
127
## Inputs
127
128
128
129
| Name | Description | Type | Default | Required |
| <aname="input_additional_permissions"></a> [additional\_permissions](#input\_additional\_permissions)| Additional Subscription-Level Permissions the Service Principal needs. |`list(string)`|`[]`| no |
131
132
| <aname="input_additional_required_resource_accesses"></a> [additional\_required\_resource\_accesses](#input\_additional\_required\_resource\_accesses)| Additional AAD-Level Resource Accesses the replicator Service Principal needs. |`list(object({ resource_app_id = string, resource_accesses = list(object({ id = string, type = string })) }))`|`[]`| no |
132
-
| <aname="input_idplookup_enabled"></a> [idplookup\_enabled](#input\_idplookup\_enabled)| Whether to create idplookup Service Principal or not. |`bool`|`true`| no |
133
+
| <aname="input_create_passwords"></a> [create\_passwords](#input\_create\_passwords)| Create passwords for service principals. |`bool`|`true`| no |
134
+
| <aname="input_metering_assignment_scopes"></a> [metering\_assignment\_scopes](#input\_metering\_assignment\_scopes)| Names or UUIDs of the Management Groups that kraken should collect costs for. |`list(string)`| n/a | yes |
133
135
| <aname="input_metering_enabled"></a> [metering\_enabled](#input\_metering\_enabled)| Whether to create Metering Service Principal or not. |`bool`|`true`| no |
134
-
| <aname="input_mgmt_group_name"></a> [mgmt\_group\_name](#input\_mgmt\_group\_name)| The name or UUID of the Management Group. |`string`| n/a | yes |
136
+
| <aname="input_metering_service_principal_name"></a> [metering\_service\_principal\_name](#input\_metering\_service\_principal\_name)| Service principal for collecting cost data. Kraken ist the name of the meshStack component. Name must be unique per Entra ID. |`string`|`"kraken"`| no |
137
+
| <aname="input_replicator_assignment_scopes"></a> [replicator\_assignment\_scopes](#input\_replicator\_assignment\_scopes)| Names or UUIDs of the Management Groups which replicator should manage. |`list(string)`| n/a | yes |
138
+
| <aname="input_replicator_custom_role_scope"></a> [replicator\_custom\_role\_scope](#input\_replicator\_custom\_role\_scope)| Name or UUID of the Management Group of the replicator custom role definition. The custom role definition must be available for all assignment scopes. |`string`| n/a | yes |
135
139
| <aname="input_replicator_enabled"></a> [replicator\_enabled](#input\_replicator\_enabled)| Whether to create replicator Service Principal or not. |`bool`|`true`| no |
136
-
| <aname="input_replicator_rg_enabled"></a> [replicator\_rg\_enabled](#input\_replicator\_rg\_enabled)| Enables the replicator service principal to be used for Azure Resource Group replication. Implicitly enables the `replicator_enabled` flag. |`bool`|`true`| no |
137
-
| <aname="input_service_principal_name_suffix"></a> [service\_principal\_name\_suffix](#input\_service\_principal\_name\_suffix)| Service principal name suffix. Make sure this is unique. |`string`| n/a | yes |
138
-
| <aname="input_subscriptions"></a> [subscriptions](#input\_subscriptions)| The scope to which UAMI blueprint service principal role assignment is applied. |`list(any)`|`[]`| no |
140
+
| <aname="input_replicator_rg_enabled"></a> [replicator\_rg\_enabled](#input\_replicator\_rg\_enabled)| Whether the created replicator Service Principal should be usable for Azure Resource Group based replication. Implicitly enables replicator\_enabled if set to true. |`bool`|`false`| no |
141
+
| <aname="input_replicator_service_principal_name"></a> [replicator\_service\_principal\_name](#input\_replicator\_service\_principal\_name)| Service principal for managing subscriptions. Replicator is the name of the meshStack component. Name must be unique per Entra ID. |`string`|`"replicator"`| no |
142
+
| <aname="input_sso_enabled"></a> [sso\_enabled](#input\_sso\_enabled)| Whether to create SSO Service Principal or not. |`bool`|`true`| no |
143
+
| <aname="input_sso_meshstack_redirect_uri"></a> [sso\_meshstack\_redirect\_uri](#input\_sso\_meshstack\_redirect\_uri)| Redirect URI that was provided by meshcloud. It is individual per meshStack. |`string`|`"<replace with uri>"`| no |
144
+
| <aname="input_sso_service_principal_name"></a> [sso\_service\_principal\_name](#input\_sso\_service\_principal\_name)| Service principal for Entra ID SSO. Name must be unique per Entra ID. |`string`|`"sso"`| no |
145
+
| <aname="input_workload_identity_federation"></a> [workload\_identity\_federation](#input\_workload\_identity\_federation)| Enable workload identity federation by creating federated credentials for enterprise applications. Usually you'd receive the required settings when attempting to configure a platform with workload identity federation in meshStack. |`object({ issuer = string, replicator_subject = string, kraken_subject = string })`|`null`| no |
139
146
140
147
## Outputs
141
148
142
149
| Name | Description |
143
150
|------|-------------|
144
151
| <aname="output_azure_ad_tenant_id"></a> [azure\_ad\_tenant\_id](#output\_azure\_ad\_tenant\_id)| The Azure AD tenant id. |
145
-
| <aname="output_idp_lookup_service_principal"></a> [idp\_lookup\_service\_principal](#output\_idp\_lookup\_service\_principal)| IDP Lookup Service Principal. |
146
-
| <aname="output_idp_lookup_service_principal_password"></a> [idp\_lookup\_service\_principal\_password](#output\_idp\_lookup\_service\_principal\_password)| Password for IDP Lookup Service Principal. |
147
152
| <aname="output_metering_service_principal"></a> [metering\_service\_principal](#output\_metering\_service\_principal)| Metering Service Principal. |
148
153
| <aname="output_metering_service_principal_password"></a> [metering\_service\_principal\_password](#output\_metering\_service\_principal\_password)| Password for Metering Service Principal. |
149
154
| <aname="output_replicator_service_principal"></a> [replicator\_service\_principal](#output\_replicator\_service\_principal)| Replicator Service Principal. |
150
155
| <aname="output_replicator_service_principal_password"></a> [replicator\_service\_principal\_password](#output\_replicator\_service\_principal\_password)| Password for Replicator Service Principal. |
151
-
| <aname="output_uami_blueprint_user_principal"></a> [uami\_blueprint\_user\_principal](#output\_uami\_blueprint\_user\_principal)|UAMI Blueprint Assignment Service Principal. |
152
-
| <aname="output_uami_blueprint_user_principal_password"></a> [uami\_blueprint\_user\_principal\_password](#output\_uami\_blueprint\_user\_principal\_password)| Password for UAMI Blueprint Assignment Service Principal. |
156
+
| <aname="output_sso_service_principal"></a> [sso\_service\_principal](#output\_sso\_service\_principal)|SSO Service Principal. |
157
+
| <aname="output_sso_service_principal_password"></a> [sso\_service\_principal\_password](#output\_sso\_service\_principal\_password)| Password for SSO Service Principal. |
Copy file name to clipboardExpand all lines: modules/meshcloud-metering-service-principal/variables.tf
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,3 +7,14 @@ variable "assignment_scopes" {
7
7
type=list(string)
8
8
description="The scopes to which Service Principal permissions should be assigned to. Usually this is the management group id of form `/providers/Microsoft.Management/managementGroups/<tenantId>` that sits atop the subscriptions."
9
9
}
10
+
11
+
variable"create_password" {
12
+
type=bool
13
+
description="Create a password for the enterprise application."
14
+
}
15
+
16
+
variable"workload_identity_federation" {
17
+
default=null
18
+
description="Enable workload identity federation instead of using a password by providing these additional settings. Usually you should receive the required settings when attempting to configure a platform with workload identity federation in meshStack."
0 commit comments