diff --git a/README.md b/README.md index 4daccc5d..9836640c 100644 --- a/README.md +++ b/README.md @@ -967,6 +967,8 @@ module "cluster_pattern" { | [key\_rings](#output\_key\_rings) | Key rings created by module | | [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. | | [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. | +| [management\_rg\_id](#output\_management\_rg\_id) | Resource group ID for the management resource group used within landing zone. | +| [management\_rg\_name](#output\_management\_rg\_name) | Resource group name for the management resource group used within landing zone. | | [placement\_groups](#output\_placement\_groups) | List of placement groups. | | [resource\_group\_data](#output\_resource\_group\_data) | List of resource groups data used within landing zone. | | [resource\_group\_names](#output\_resource\_group\_names) | List of resource groups names used within landing zone. | @@ -992,6 +994,8 @@ module "cluster_pattern" { | [vsi\_names](#output\_vsi\_names) | List of VSI names | | [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. | | [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. | +| [workload\_rg\_id](#output\_workload\_rg\_id) | Resource group ID for the workload resource group used within landing zone. | +| [workload\_rg\_name](#output\_workload\_rg\_name) | Resource group name for the workload resource group used within landing zone. | diff --git a/outputs.tf b/outputs.tf index 773a6bbd..35123eba 100644 --- a/outputs.tf +++ b/outputs.tf @@ -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" +} ############################################################################## diff --git a/patterns/mixed/outputs.tf b/patterns/mixed/outputs.tf index f85bf66d..acedb069 100644 --- a/patterns/mixed/outputs.tf +++ b/patterns/mixed/outputs.tf @@ -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 diff --git a/patterns/roks-quickstart/outputs.tf b/patterns/roks-quickstart/outputs.tf index 3feb48ce..f1c0e314 100644 --- a/patterns/roks-quickstart/outputs.tf +++ b/patterns/roks-quickstart/outputs.tf @@ -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 diff --git a/patterns/roks/module/outputs.tf b/patterns/roks/module/outputs.tf index 58bc5a4f..ecf6727b 100644 --- a/patterns/roks/module/outputs.tf +++ b/patterns/roks/module/outputs.tf @@ -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 diff --git a/patterns/roks/outputs.tf b/patterns/roks/outputs.tf index a7a077e0..ab9fb95b 100644 --- a/patterns/roks/outputs.tf +++ b/patterns/roks/outputs.tf @@ -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 diff --git a/patterns/vpc/module/outputs.tf b/patterns/vpc/module/outputs.tf index 44a54fdb..0d059ab1 100644 --- a/patterns/vpc/module/outputs.tf +++ b/patterns/vpc/module/outputs.tf @@ -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 diff --git a/patterns/vpc/outputs.tf b/patterns/vpc/outputs.tf index e2f33770..8b2f9cd6 100644 --- a/patterns/vpc/outputs.tf +++ b/patterns/vpc/outputs.tf @@ -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 diff --git a/patterns/vsi/module/outputs.tf b/patterns/vsi/module/outputs.tf index 73fafb7e..5d95c6e1 100644 --- a/patterns/vsi/module/outputs.tf +++ b/patterns/vsi/module/outputs.tf @@ -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 diff --git a/patterns/vsi/outputs.tf b/patterns/vsi/outputs.tf index d5797005..62855a13 100644 --- a/patterns/vsi/outputs.tf +++ b/patterns/vsi/outputs.tf @@ -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