From ad2bff1e215c4e1fb3c8f330189f4b2497859e7c Mon Sep 17 00:00:00 2001 From: Dmytro Velychko Date: Tue, 1 Nov 2022 12:15:40 +0200 Subject: [PATCH 1/3] feat: outputs-parameter-addition --- README.md | 1 + outputs.tf | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index 599fdcf..8440ab6 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ No modules. |------|-------------| | [log\_analytics\_primary\_shared\_key](#output\_log\_analytics\_primary\_shared\_key) | The Primary shared key for the Log Analytics Workspace | | [log\_analytics\_workspace\_id](#output\_log\_analytics\_workspace\_id) | The Log Analytics Workspace ID | +| [log\_analytics\_workspace\_name](#output\_log\_analytics\_workspace\_name) | The Log Analytics Workspace Name | ## License diff --git a/outputs.tf b/outputs.tf index b92e872..fe425e3 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,3 +1,8 @@ +output "name" { + value = azurerm_log_analytics_workspace.this.name + description = "The Log Analytics Workspace Name" +} + output "log_analytics_workspace_id" { value = azurerm_log_analytics_workspace.this.id description = "The Log Analytics Workspace ID" @@ -7,3 +12,8 @@ output "log_analytics_primary_shared_key" { value = azurerm_log_analytics_workspace.this.primary_shared_key description = "The Primary shared key for the Log Analytics Workspace" } + +output "name_to_id_map" { + value = { (azurerm_log_analytics_workspace.this.name) = azurerm_log_analytics_workspace.this.id } + description = "Map of Virtual Network Name to Id" +} \ No newline at end of file From f72345ef2b617f9a16a86f19fb47d9ff448e0b22 Mon Sep 17 00:00:00 2001 From: Dmytro Velychko Date: Tue, 1 Nov 2022 13:07:32 +0200 Subject: [PATCH 2/3] feat: outputs-parameter-addition --- outputs.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/outputs.tf b/outputs.tf index fe425e3..1643818 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,4 +1,4 @@ -output "name" { +output "log_analytics_workspace_name" { value = azurerm_log_analytics_workspace.this.name description = "The Log Analytics Workspace Name" } From 34fe87797bc2e7f14ffc4ff971dee9e9296f9091 Mon Sep 17 00:00:00 2001 From: owlleg6 Date: Tue, 1 Nov 2022 14:58:37 +0200 Subject: [PATCH 3/3] feat: added new output --- README.md | 8 ++++---- outputs.tf | 33 ++++++++++++++------------------- 2 files changed, 18 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 8440ab6..cdddc83 100644 --- a/README.md +++ b/README.md @@ -41,11 +41,11 @@ No modules. ## Outputs -| Name | Description | -|------|-------------| +| Name | Description | +|----------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------| | [log\_analytics\_primary\_shared\_key](#output\_log\_analytics\_primary\_shared\_key) | The Primary shared key for the Log Analytics Workspace | -| [log\_analytics\_workspace\_id](#output\_log\_analytics\_workspace\_id) | The Log Analytics Workspace ID | -| [log\_analytics\_workspace\_name](#output\_log\_analytics\_workspace\_name) | The Log Analytics Workspace Name | +| [log\_analytics\_workspace\_id](#output\_log\_analytics\_workspace\_id) | The Log Analytics Workspace ID | +| [name\_to\_id\_map](#output\_name\_to\_id\_map) | Map of Virtual Network Name to Id | ## License diff --git a/outputs.tf b/outputs.tf index 1643818..0e082eb 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,19 +1,14 @@ -output "log_analytics_workspace_name" { - value = azurerm_log_analytics_workspace.this.name - description = "The Log Analytics Workspace Name" -} - -output "log_analytics_workspace_id" { - value = azurerm_log_analytics_workspace.this.id - description = "The Log Analytics Workspace ID" -} - -output "log_analytics_primary_shared_key" { - value = azurerm_log_analytics_workspace.this.primary_shared_key - description = "The Primary shared key for the Log Analytics Workspace" -} - -output "name_to_id_map" { - value = { (azurerm_log_analytics_workspace.this.name) = azurerm_log_analytics_workspace.this.id } - description = "Map of Virtual Network Name to Id" -} \ No newline at end of file +output "log_analytics_workspace_id" { + value = azurerm_log_analytics_workspace.this.id + description = "The Log Analytics Workspace ID" +} + +output "log_analytics_primary_shared_key" { + value = azurerm_log_analytics_workspace.this.primary_shared_key + description = "The Primary shared key for the Log Analytics Workspace" +} + +output "name_to_id_map" { + value = { (azurerm_log_analytics_workspace.this.name) = azurerm_log_analytics_workspace.this.id } + description = "Map of Virtual Network Name to Id" +}