Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add new rg id output #931

Merged
merged 8 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,8 @@ module "cluster_pattern" {
| <a name="output_key_rings"></a> [key\_rings](#output\_key\_rings) | Key rings created by module |
| <a name="output_management_cluster_id"></a> [management\_cluster\_id](#output\_management\_cluster\_id) | The id of the management cluster. If the cluster name does not exactly match the prefix-management-cluster pattern it will be null. |
| <a name="output_management_cluster_name"></a> [management\_cluster\_name](#output\_management\_cluster\_name) | The name of the management cluster. If the cluster name does not exactly match the prefix-management-cluster pattern it will be null. |
| <a name="output_management_rg_id"></a> [management\_rg\_id](#output\_management\_rg\_id) | Resource group ID for the management resource group used within landing zone. |
| <a name="output_management_rg_name"></a> [management\_rg\_name](#output\_management\_rg\_name) | Resource group name for the management resource group used within landing zone. |
| <a name="output_placement_groups"></a> [placement\_groups](#output\_placement\_groups) | List of placement groups. |
| <a name="output_resource_group_data"></a> [resource\_group\_data](#output\_resource\_group\_data) | List of resource groups data used within landing zone. |
| <a name="output_resource_group_names"></a> [resource\_group\_names](#output\_resource\_group\_names) | List of resource groups names used within landing zone. |
Expand All @@ -992,6 +994,8 @@ module "cluster_pattern" {
| <a name="output_vsi_names"></a> [vsi\_names](#output\_vsi\_names) | List of VSI names |
| <a name="output_workload_cluster_id"></a> [workload\_cluster\_id](#output\_workload\_cluster\_id) | The id of the workload cluster. If the cluster name does not exactly match the prefix-workload-cluster pattern it will be null. |
| <a name="output_workload_cluster_name"></a> [workload\_cluster\_name](#output\_workload\_cluster\_name) | The name of the workload cluster. If the cluster name does not exactly match the prefix-workload-cluster pattern it will be null. |
| <a name="output_workload_rg_id"></a> [workload\_rg\_id](#output\_workload\_rg\_id) | Resource group ID for the workload resource group used within landing zone. |
| <a name="output_workload_rg_name"></a> [workload\_rg\_name](#output\_workload\_rg\_name) | Resource group name for the workload resource group used within landing zone. |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

<!-- Leave this section as is so that your module has a link to local development environment set up steps for contributors to follow -->
Expand Down
19 changes: 19 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,25 @@ output "resource_group_data" {
value = local.resource_groups_info
}

output "management_rg_id" {
description = "Resource group ID for the management resource group used within landing zone."
value = local.resource_groups_info["${var.prefix}-management-rg"]
}

output "management_rg_name" {
description = "Resource group name for the management resource group used within landing zone."
value = "${var.prefix}-management-rg"
}

output "workload_rg_id" {
description = "Resource group ID for the workload resource group used within landing zone."
value = local.resource_groups_info["${var.prefix}-workload-rg"]
}

output "workload_rg_name" {
description = "Resource group name for the workload resource group used within landing zone."
value = "${var.prefix}-workload-rg"
}

##############################################################################

Expand Down
20 changes: 20 additions & 0 deletions patterns/mixed/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,26 @@ output "resource_group_data" {
value = module.landing_zone.resource_group_data
}

output "management_rg_id" {
description = "Resource group ID for the management resource group used within landing zone."
value = module.landing_zone.resource_group_data[module.landing_zone.management_rg_name]
}

output "management_rg_name" {
description = "Resource group name for the management resource group used within landing zone."
value = module.landing_zone.management_rg_name
}

output "workload_rg_id" {
description = "Resource group ID for the workload resource group used within landing zone."
value = module.landing_zone.resource_group_data[module.landing_zone.workload_rg_name]
}

output "workload_rg_name" {
description = "Resource group name for the workload resource group used within landing zone."
value = module.landing_zone.workload_rg_name
}

output "vpc_names" {
description = "A list of the names of the VPC"
value = module.landing_zone.vpc_names
Expand Down
20 changes: 20 additions & 0 deletions patterns/roks-quickstart/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,26 @@ output "resource_group_data" {
value = module.landing_zone.resource_group_data
}

output "management_rg_id" {
description = "Resource group ID for the management resource group used within landing zone."
value = module.landing_zone.resource_group_data[module.landing_zone.management_rg_name]
}

output "management_rg_name" {
description = "Resource group name for the management resource group used within landing zone."
value = module.landing_zone.management_rg_name
}

output "workload_rg_id" {
description = "Resource group ID for the workload resource group used within landing zone."
value = module.landing_zone.resource_group_data[module.landing_zone.workload_rg_name]
}

output "workload_rg_name" {
description = "Resource group name for the workload resource group used within landing zone."
value = module.landing_zone.workload_rg_name
}

output "vpc_names" {
description = "A list of the names of the VPC"
value = module.landing_zone.vpc_names
Expand Down
20 changes: 20 additions & 0 deletions patterns/roks/module/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,26 @@ output "resource_group_data" {
value = module.landing_zone.resource_group_data
}

output "management_rg_id" {
description = "Resource group ID for the management resource group used within landing zone."
value = module.landing_zone.resource_group_data[module.landing_zone.management_rg_name]
}

output "management_rg_name" {
description = "Resource group name for the management resource group used within landing zone."
value = module.landing_zone.management_rg_name
}

output "workload_rg_id" {
description = "Resource group ID for the workload resource group used within landing zone."
value = module.landing_zone.resource_group_data[module.landing_zone.workload_rg_name]
}

output "workload_rg_name" {
description = "Resource group name for the workload resource group used within landing zone."
value = module.landing_zone.workload_rg_name
}

output "vpc_names" {
description = "A list of the names of the VPC"
value = module.landing_zone.vpc_names
Expand Down
20 changes: 20 additions & 0 deletions patterns/roks/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,26 @@ output "resource_group_data" {
value = module.roks_landing_zone.resource_group_data
}

output "management_rg_id" {
description = "Resource group ID for the management resource group used within landing zone."
value = module.roks_landing_zone.resource_group_data[module.roks_landing_zone.management_rg_name]
}

output "management_rg_name" {
description = "Resource group name for the management resource group used within landing zone."
value = module.roks_landing_zone.management_rg_name
}

output "workload_rg_id" {
description = "Resource group ID for the workload resource group used within landing zone."
value = module.roks_landing_zone.resource_group_data[module.roks_landing_zone.workload_rg_name]
}

output "workload_rg_name" {
description = "Resource group name for the workload resource group used within landing zone."
value = module.roks_landing_zone.workload_rg_name
}

output "vpc_names" {
description = "A list of the names of the VPC"
value = module.roks_landing_zone.vpc_names
Expand Down
20 changes: 20 additions & 0 deletions patterns/vpc/module/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,26 @@ output "resource_group_data" {
value = module.landing_zone.resource_group_data
}

output "management_rg_id" {
description = "Resource group ID for the management resource group used within landing zone."
value = module.landing_zone.resource_group_data[module.landing_zone.management_rg_name]
}

output "management_rg_name" {
description = "Resource group name for the management resource group used within landing zone."
value = module.landing_zone.management_rg_name
}

output "workload_rg_id" {
description = "Resource group ID for the workload resource group used within landing zone."
value = module.landing_zone.resource_group_data[module.landing_zone.workload_rg_name]
}

output "workload_rg_name" {
description = "Resource group name for the workload resource group used within landing zone."
value = module.landing_zone.workload_rg_name
}

output "vpc_names" {
description = "A list of the names of the VPC"
value = module.landing_zone.vpc_names
Expand Down
20 changes: 20 additions & 0 deletions patterns/vpc/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,26 @@ output "resource_group_data" {
value = module.vpc_landing_zone.resource_group_data
}

output "management_rg_id" {
description = "Resource group ID for the management resource group used within landing zone."
value = module.vpc_landing_zone.resource_group_data[module.vpc_landing_zone.management_rg_name]
}

output "management_rg_name" {
description = "Resource group name for the management resource group used within landing zone."
value = module.vpc_landing_zone.management_rg_name
}

output "workload_rg_id" {
description = "Resource group ID for the workload resource group used within landing zone."
value = module.vpc_landing_zone.resource_group_data[module.vpc_landing_zone.workload_rg_name]
}

output "workload_rg_name" {
description = "Resource group name for the workload resource group used within landing zone."
value = module.vpc_landing_zone.workload_rg_name
}

output "vpc_names" {
description = "A list of the names of the VPC"
value = module.vpc_landing_zone.vpc_names
Expand Down
20 changes: 20 additions & 0 deletions patterns/vsi/module/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,26 @@ output "resource_group_data" {
value = module.landing_zone.resource_group_data
}

output "management_rg_id" {
description = "Resource group ID for the management resource group used within landing zone."
value = module.landing_zone.resource_group_data[module.landing_zone.management_rg_name]
}

output "management_rg_name" {
description = "Resource group name for the management resource group used within landing zone."
value = module.landing_zone.management_rg_name
}

output "workload_rg_id" {
description = "Resource group ID for the workload resource group used within landing zone."
value = module.landing_zone.resource_group_data[module.landing_zone.workload_rg_name]
}

output "workload_rg_name" {
description = "Resource group name for the workload resource group used within landing zone."
value = module.landing_zone.workload_rg_name
}

output "vpc_names" {
description = "A list of the names of the VPC"
value = module.landing_zone.vpc_names
Expand Down
20 changes: 20 additions & 0 deletions patterns/vsi/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,26 @@ output "resource_group_data" {
value = module.vsi_landing_zone.resource_group_data
}

output "management_rg_id" {
description = "Resource group ID for the management resource group used within landing zone."
value = module.vsi_landing_zone.resource_group_data[module.vsi_landing_zone.management_rg_name]
}

output "management_rg_name" {
description = "Resource group name for the management resource group used within landing zone."
value = module.vsi_landing_zone.management_rg_name
}

output "workload_rg_id" {
description = "Resource group ID for the workload resource group used within landing zone."
value = module.vsi_landing_zone.resource_group_data[module.vsi_landing_zone.workload_rg_name]
}

output "workload_rg_name" {
description = "Resource group name for the workload resource group used within landing zone."
value = module.vsi_landing_zone.workload_rg_name
}

output "vpc_names" {
description = "A list of the names of the VPC"
value = module.vsi_landing_zone.vpc_names
Expand Down