-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
43 lines (35 loc) · 924 Bytes
/
main.tf
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
41
42
43
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "2.82.0"
}
}
}
#Azure provider
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "storage" {
name = "rg-terraformstate"
location = "West Europe"
}
resource "azurerm_storage_account" "storage" {
name = "atxterrastatestorage"
resource_group_name = azurerm_resource_group.storage.name
location = azurerm_resource_group.storage.location
account_tier = "Standard"
account_replication_type = "LRS"
tags = {
environment = "staging"
}
blob_properties {
change_feed_enabled = true
versioning_enabled = true
}
}
resource "azurerm_storage_container" "storage" {
name = "terraformdemo"
storage_account_name = azurerm_storage_account.storage.name
container_access_type = "private"
}