Skip to content

Commit

Permalink
Merge pull request #5 from QBY-MarkusMaring/main
Browse files Browse the repository at this point in the history
Added application output
  • Loading branch information
QBY-MarkusMaring authored Jun 13, 2022
2 parents 772cbbf + 14b5ce5 commit 513478b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ Use the archetype\_lib folder in this repo to add custom archetypes, policy defi
| <a name="input_group_assignments"></a> [group\_assignments](#input\_group\_assignments) | <pre>"<group_name>" = {<br> service_principals = optional(list(string)) (list of service principals that should be added as members) <br> "<role>" = list(string) (<role> must be a role_definition_name or role_definition_id from azure, every element must be a scope: "mg:<mg_id>", "sub:<subscription_id>", "root" for Tenant Root Group or a full scope ID)<br>}</pre> | `map(map(list(string)))` | `{}` | no |
| <a name="input_library_path"></a> [library\_path](#input\_library\_path) | If specified, sets the path to a custom library folder for archetype artefacts. | `string` | `""` | no |
| <a name="input_management_group_policy_assignment_parameter_override"></a> [management\_group\_policy\_assignment\_parameter\_override](#input\_management\_group\_policy\_assignment\_parameter\_override) | <pre>"<mg_id>" = {<br> <policy_assignment> = {<br> <parameter_name> = any (<policy_assignment> and <parameter_name> must be the same as in built-in or custom policy assignment definitions)<br> }<br>}</pre> | `any` | `{}` | no |
| <a name="input_management_groups"></a> [management\_groups](#input\_management\_groups) | <pre>"<mg_id>" = {<br> display_name = string<br> parent_management_group_id = optional(string) (Must be a <mg_id> of another MG)<br> subscription_ids = optional(list(string)) (List of subscription IDs that should be moved into that MG)<br> archetype_id = optional(string) (Name of an archetype as defined by CAF built-in or QBY archetype definitions)<br>}</pre> | <pre>map(object({<br> display_name = string<br> parent_management_group_id = optional(string)<br> subscription_ids = optional(list(string))<br> archetype_id = optional(string)<br> }))</pre> | `{}` | no |
| <a name="input_management_groups"></a> [management\_groups](#input\_management\_groups) | <pre>"<mg_id>" = {<br> display_name = string<br> parent_management_group_id = optional(string) (Must be a <mg_id> of another MG)<br> subscription_ids = optional(list(string)) (List of subscription IDs that should be moved into that MG)<br> archetype_id = optional(string) (Name of an archetype as defined by CAF built-in or QBY archetype definitions)<br> }</pre> | <pre>map(object({<br> display_name = string<br> parent_management_group_id = optional(string)<br> subscription_ids = optional(list(string))<br> archetype_id = optional(string)<br> }))</pre> | `{}` | no |

## Outputs

| Name | Description |
|------|-------------|
| <a name="output_ad_groups"></a> [ad\_groups](#output\_ad\_groups) | All AAD Groups that have been created |
| <a name="output_applications"></a> [applications](#output\_applications) | All AAD Applications that have been created |
| <a name="output_caf_output"></a> [caf\_output](#output\_caf\_output) | Passed through output of the underlying CAF module |
| <a name="output_service_principals"></a> [service\_principals](#output\_service\_principals) | All service principals that have been created |
<!-- END_TF_DOCS -->
7 changes: 6 additions & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ output "ad_groups" {
output "service_principals" {
value = azuread_service_principal.sp
description = "All service principals that have been created"
}
}

output "applications" {
value = azuread_application.apps
description = "All AAD Applications that have been created"
}
6 changes: 3 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ variable "management_groups" {
display_name = string
parent_management_group_id = optional(string)
subscription_ids = optional(list(string))
archetype_id = optional(string)
archetype_id = optional(string)
}))
description = <<-DOC
```
Expand All @@ -12,7 +12,7 @@ variable "management_groups" {
parent_management_group_id = optional(string) (Must be a <mg_id> of another MG)
subscription_ids = optional(list(string)) (List of subscription IDs that should be moved into that MG)
archetype_id = optional(string) (Name of an archetype as defined by CAF built-in or QBY archetype definitions)
}
}
```
DOC
default = {}
Expand Down Expand Up @@ -55,4 +55,4 @@ variable "library_path" {
type = string
description = "If specified, sets the path to a custom library folder for archetype artefacts."
default = ""
}
}

0 comments on commit 513478b

Please sign in to comment.