Skip to content

Commit

Permalink
refactor code structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Raffael-Eloi committed Jun 15, 2024
1 parent cc870c7 commit b5d0782
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 25 deletions.
25 changes: 0 additions & 25 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,28 +1,3 @@
provider "azurerm" {
features {}
}

data "azurerm_resource_group" "resourcegroup" {
name = "RaffaLab"
}

resource "azurerm_storage_account" "storageAccount" {
name = "storagemailnotifiersa"
resource_group_name = data.azurerm_resource_group.resourcegroup.name
location = data.azurerm_resource_group.resourcegroup.location
account_tier = "Standard"
account_replication_type = "RAGRS"
}

resource "azurerm_service_plan" "serviceplan" {
name = "StorageMailNotifierSP"
resource_group_name = data.azurerm_resource_group.resourcegroup.name
location = data.azurerm_resource_group.resourcegroup.location
os_type = "Linux"
sku_name = "Y1"
}


resource "azurerm_linux_function_app" "function" {
name = "storageMailNotifierFn"
resource_group_name = data.azurerm_resource_group.resourcegroup.name
Expand Down
3 changes: 3 additions & 0 deletions provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
provider "azurerm" {
features {}
}
3 changes: 3 additions & 0 deletions resource_group.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
data "azurerm_resource_group" "resourcegroup" {
name = "RaffaLab"
}
7 changes: 7 additions & 0 deletions service_plan.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
resource "azurerm_service_plan" "serviceplan" {
name = "StorageMailNotifierSP"
resource_group_name = data.azurerm_resource_group.resourcegroup.name
location = data.azurerm_resource_group.resourcegroup.location
os_type = "Linux"
sku_name = "Y1"
}
7 changes: 7 additions & 0 deletions storage_account.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
resource "azurerm_storage_account" "storageAccount" {
name = "storagemailnotifiersa"
resource_group_name = data.azurerm_resource_group.resourcegroup.name
location = data.azurerm_resource_group.resourcegroup.location
account_tier = "Standard"
account_replication_type = "RAGRS"
}

0 comments on commit b5d0782

Please sign in to comment.