Skip to content

Commit 9f87d9d

Browse files
feat: added new output vpc_dns (#842)
Co-authored-by: Conall Ó Cofaigh <ocofaigh@ie.ibm.com>
1 parent f4b278b commit 9f87d9d

File tree

10 files changed

+52
-0
lines changed

10 files changed

+52
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -975,6 +975,7 @@ module "cluster_pattern" {
975975
| <a name="output_transit_gateway_data"></a> [transit\_gateway\_data](#output\_transit\_gateway\_data) | Created transit gateway data |
976976
| <a name="output_transit_gateway_name"></a> [transit\_gateway\_name](#output\_transit\_gateway\_name) | Name of created transit gateway |
977977
| <a name="output_vpc_data"></a> [vpc\_data](#output\_vpc\_data) | List of VPC data |
978+
| <a name="output_vpc_dns"></a> [vpc\_dns](#output\_vpc\_dns) | List of VPC DNS details for each of the VPCs. |
978979
| <a name="output_vpc_names"></a> [vpc\_names](#output\_vpc\_names) | List of VPC names |
979980
| <a name="output_vpc_resource_list"></a> [vpc\_resource\_list](#output\_vpc\_resource\_list) | List of VPC with VSI and Cluster deployed on the VPC. |
980981
| <a name="output_vpe_gateway_data"></a> [vpe\_gateway\_data](#output\_vpe\_gateway\_data) | List of VPE gateways data |

outputs.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,17 @@ output "vpc_resource_list" {
241241
]
242242
}
243243

244+
output "vpc_dns" {
245+
description = "List of VPC DNS details for each of the VPCs."
246+
value = [
247+
for vpc in module.vpc :
248+
{
249+
dns_instance_id = vpc.dns_instance_id
250+
dns_custom_resolver_id = vpc.dns_custom_resolver_id
251+
}
252+
]
253+
}
254+
244255
##############################################################################
245256

246257
##############################################################################

patterns/mixed/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ output "cluster_data" {
9797
value = module.landing_zone.cluster_data
9898
}
9999

100+
output "vpc_dns" {
101+
description = "List of VPC DNS details for each of the VPCs."
102+
value = module.landing_zone.vpc_dns
103+
}
104+
100105
##############################################################################
101106

102107
##############################################################################

patterns/roks-quickstart/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ output "key_map" {
9292
value = module.landing_zone.key_map
9393
}
9494

95+
output "vpc_dns" {
96+
description = "List of VPC DNS details for each of the VPCs."
97+
value = module.landing_zone.vpc_dns
98+
}
99+
95100
##############################################################################
96101

97102
##############################################################################

patterns/roks/module/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ output "key_map" {
117117
value = module.landing_zone.key_map
118118
}
119119

120+
output "vpc_dns" {
121+
description = "List of VPC DNS details for each of the VPCs."
122+
value = module.landing_zone.vpc_dns
123+
}
124+
120125
##############################################################################
121126

122127
##############################################################################

patterns/roks/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ output "key_map" {
117117
value = module.roks_landing_zone.key_map
118118
}
119119

120+
output "vpc_dns" {
121+
description = "List of VPC DNS details for each of the VPCs."
122+
value = module.roks_landing_zone.vpc_dns
123+
}
124+
120125
##############################################################################
121126

122127
##############################################################################

patterns/vpc/module/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ output "key_map" {
9292
value = module.landing_zone.key_map
9393
}
9494

95+
output "vpc_dns" {
96+
description = "List of VPC DNS details for each of the VPCs."
97+
value = module.landing_zone.vpc_dns
98+
}
99+
95100
##############################################################################
96101

97102
##############################################################################

patterns/vpc/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ output "key_map" {
9292
value = module.vpc_landing_zone.key_map
9393
}
9494

95+
output "vpc_dns" {
96+
description = "List of VPC DNS details for each of the VPCs."
97+
value = module.vpc_landing_zone.vpc_dns
98+
}
99+
95100
##############################################################################
96101

97102
##############################################################################

patterns/vsi/module/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ output "key_map" {
112112
value = module.landing_zone.key_map
113113
}
114114

115+
output "vpc_dns" {
116+
description = "List of VPC DNS details for each of the VPCs."
117+
value = module.landing_zone.vpc_dns
118+
}
119+
115120
##############################################################################
116121

117122
##############################################################################

patterns/vsi/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ output "key_map" {
112112
value = module.vsi_landing_zone.key_map
113113
}
114114

115+
output "vpc_dns" {
116+
description = "List of VPC DNS details for each of the VPCs."
117+
value = module.vsi_landing_zone.vpc_dns
118+
}
119+
115120
##############################################################################
116121

117122
##############################################################################

0 commit comments

Comments
 (0)