Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
SHCHERBANV committed Aug 26, 2024
1 parent 00c3f51 commit 900f8c0
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/resource_group_storage/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/.terraform/*
./terraform/*
*.tfstate
*.tfstate.*
*.zip

21 changes: 21 additions & 0 deletions modules/resource_group_storage/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions modules/resource_group_storage/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
provider "azurerm" {
features {}
}

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 = azurerm_resource_group.example.location
account_tier = "Standard"
account_replication_type = "LRS"
}
7 changes: 7 additions & 0 deletions modules/resource_group_storage/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
output "resource_group_name" {
value = azurerm_resource_group.example.name
}

output "storage_account_name" {
value = azurerm_storage_account.example.name
}
Binary file added modules/resource_group_storage/tfplan
Binary file not shown.
15 changes: 15 additions & 0 deletions modules/resource_group_storage/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
variable "resource_group_name" {
description = "The name of the resource group"
type = string
}

variable "location" {
description = "The Azure region to deploy resources"
type = string
default = "West US"
}

variable "storage_account_name" {
description = "The name of the storage account"
type = string
}

0 comments on commit 900f8c0

Please sign in to comment.