Skip to content

Commit

Permalink
added module back
Browse files Browse the repository at this point in the history
  • Loading branch information
Serveladik committed Sep 17, 2024
1 parent d9ab8bf commit 031ea66
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/resource_group_storage/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
resource "azurerm_resource_group" "example" {
name = var.resource_group_name
location = var.location
}

resource "azurerm_storage_account" "example" {
name = var.storage_account_name
resource_group_name = azurerm_resource_group.example.name
location = var.location
account_tier = "Standard"
account_replication_type = "LRS"
}
3 changes: 3 additions & 0 deletions modules/resource_group_storage/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
output "resource_group_name" {
value = azurerm_resource_group.example.name
}
14 changes: 14 additions & 0 deletions modules/resource_group_storage/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
variable "resource_group_name" {
type = string
default = "default-resource-group"
}

variable "location" {
type = string
default = "Poland Central"
}

variable "storage_account_name" {
type = string
default = "defaultstorageaccount"
}

0 comments on commit 031ea66

Please sign in to comment.