-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstorage.tf
30 lines (26 loc) · 956 Bytes
/
storage.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
resource "azurerm_resource_group" "example" {
name = "azure-blob-proxy-demo"
location = "eastus2"
}
resource "azurerm_storage_account" "example" {
name = "azureblobproxydemo"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
account_tier = "Standard"
account_replication_type = "LRS"
tags = {
environment = "staging"
}
}
resource "azurerm_storage_container" "example" {
name = "azure-blob-proxy-demo"
storage_account_name = azurerm_storage_account.example.name
container_access_type = "private"
}
resource "azurerm_storage_blob" "example" {
name = "myfile.txt"
storage_account_name = azurerm_storage_account.example.name
storage_container_name = azurerm_storage_container.example.name
type = "Block"
source_content = "Hello, world"
}