From 162d7fcb0ce99e8c875569995957ff6a11573324 Mon Sep 17 00:00:00 2001 From: shemau Date: Fri, 22 Sep 2023 13:48:22 +0100 Subject: [PATCH] feat: add placement group details to outputs (#582) --- README.md | 1 + module-metadata.json | 45 ++++++++++++++++++++++++++------------------ outputs.tf | 11 +++++++++++ 3 files changed, 39 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index f5c63ae29..db6c462ab 100644 --- a/README.md +++ b/README.md @@ -1007,6 +1007,7 @@ statement instead the previous block. | [cos\_names](#output\_cos\_names) | List of Cloud Object Storage instance names | | [f5\_hosts](#output\_f5\_hosts) | List of bastion host names | | [fip\_vsi\_data](#output\_fip\_vsi\_data) | A list of VSI with name, id, zone, and primary ipv4 address, VPC Name, and floating IP. This list only contains instances with a floating IP attached. | +| [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. | | [secrets\_manager\_data](#output\_secrets\_manager\_data) | Secrets manager instance | diff --git a/module-metadata.json b/module-metadata.json index 0a96b487c..8c42ae124 100644 --- a/module-metadata.json +++ b/module-metadata.json @@ -634,7 +634,16 @@ "description": "A list of VSI with name, id, zone, and primary ipv4 address, VPC Name, and floating IP. This list only contains instances with a floating IP attached.", "pos": { "filename": "outputs.tf", - "line": 307 + "line": 318 + } + }, + "placement_groups": { + "name": "placement_groups", + "description": "List of placement groups.", + "value": "resource.ibm_is_placement_group.placement_group", + "pos": { + "filename": "outputs.tf", + "line": 195 } }, "resource_group_data": { @@ -643,7 +652,7 @@ "value": "local.resource_groups", "pos": { "filename": "outputs.tf", - "line": 200 + "line": 211 } }, "resource_group_names": { @@ -651,7 +660,7 @@ "description": "List of resource groups names used within landing zone.", "pos": { "filename": "outputs.tf", - "line": 195 + "line": 206 } }, "secrets_manager_data": { @@ -659,7 +668,7 @@ "description": "Secrets manager instance", "pos": { "filename": "outputs.tf", - "line": 211 + "line": 222 } }, "security_group_data": { @@ -667,7 +676,7 @@ "description": "List of security group data", "pos": { "filename": "outputs.tf", - "line": 231 + "line": 242 } }, "security_group_names": { @@ -675,7 +684,7 @@ "description": "List of security group names", "pos": { "filename": "outputs.tf", - "line": 222 + "line": 233 } }, "service_authorization_data": { @@ -683,7 +692,7 @@ "description": "List of service authorization data", "pos": { "filename": "outputs.tf", - "line": 250 + "line": 261 } }, "service_authorization_names": { @@ -691,7 +700,7 @@ "description": "List of service authorization names", "pos": { "filename": "outputs.tf", - "line": 245 + "line": 256 } }, "ssh_key_data": { @@ -699,7 +708,7 @@ "description": "List of SSH key data", "pos": { "filename": "outputs.tf", - "line": 269 + "line": 280 } }, "ssh_key_names": { @@ -707,7 +716,7 @@ "description": "List of SSH key names", "pos": { "filename": "outputs.tf", - "line": 264 + "line": 275 } }, "subnet_data": { @@ -731,7 +740,7 @@ "description": "Created transit gateway data", "pos": { "filename": "outputs.tf", - "line": 288 + "line": 299 } }, "transit_gateway_name": { @@ -739,7 +748,7 @@ "description": "Name of created transit gateway", "pos": { "filename": "outputs.tf", - "line": 283 + "line": 294 } }, "vpc_data": { @@ -763,7 +772,7 @@ "description": "List of VPE gateways data", "pos": { "filename": "outputs.tf", - "line": 357 + "line": 368 } }, "vpe_gateway_names": { @@ -771,7 +780,7 @@ "description": "VPE gateway names", "pos": { "filename": "outputs.tf", - "line": 349 + "line": 360 } }, "vpn_data": { @@ -779,7 +788,7 @@ "description": "List of VPN data", "pos": { "filename": "outputs.tf", - "line": 379 + "line": 390 } }, "vpn_names": { @@ -787,7 +796,7 @@ "description": "List of VPN names", "pos": { "filename": "outputs.tf", - "line": 371 + "line": 382 } }, "vsi_data": { @@ -795,7 +804,7 @@ "description": "A list of VSI with name, id, zone, and primary ipv4 address, VPC Name, and floating IP.", "pos": { "filename": "outputs.tf", - "line": 325 + "line": 336 } }, "vsi_names": { @@ -803,7 +812,7 @@ "description": "List of VSI names", "pos": { "filename": "outputs.tf", - "line": 299 + "line": 310 } } }, diff --git a/outputs.tf b/outputs.tf index 4704ecdee..c7a7f4fd1 100644 --- a/outputs.tf +++ b/outputs.tf @@ -188,6 +188,17 @@ output "subnet_data" { ############################################################################## +############################################################################## +# Placement Group Outputs +############################################################################## + +output "placement_groups" { + description = "List of placement groups." + value = resource.ibm_is_placement_group.placement_group +} + +############################################################################## + ############################################################################## # Resource Group Outputs ##############################################################################