-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
40 lines (34 loc) · 1.01 KB
/
Copy pathmain.tf
File metadata and controls
40 lines (34 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=3.9.0"
}
}
backend "azurerm" {
resource_group_name = "mowentfstate"
storage_account_name = "mowentfstatestorage"
container_name = "tfstate"
key = "prod.terraform.tfstate"
}
}
provider "azurerm" {
features {}
}
data "azurerm_client_config" "current" {}
resource "azurerm_resource_group" "foundry" {
name = "${local.env_prefix}rg"
location = local.region
}
resource "azurerm_storage_account" "foundry" {
name = "${local.storage_prefix}storage"
location = azurerm_resource_group.foundry.location
resource_group_name = azurerm_resource_group.foundry.name
account_tier = "Standard"
account_replication_type = "ZRS"
}
resource "azurerm_storage_share" "foundry" {
name = "${local.storage_prefix}share"
storage_account_name = azurerm_storage_account.foundry.name
quota = 5
}