Skip to content

Commit

Permalink
Adding output.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
Binaya Sharma committed Aug 10, 2023
1 parent 51b2461 commit 7d5957c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "azurerm_resource_group" "cloudcommons" {
resource "azurerm_resource_group" "main" {
name = var.name
location = var.location
tags = {
Expand Down
14 changes: 14 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
output "id" {
value = azurerm_resource_group.main.id
description = "The resource group id"
}

output "name" {
value = var.name
description = "The name of the resource group"
}

output "location" {
value = var.location
description = "The location where the resource group was created."
}

0 comments on commit 7d5957c

Please sign in to comment.