File tree Expand file tree Collapse file tree 3 files changed +159
-0
lines changed
storage_account_with_containers
storage_account_with_fileshares Expand file tree Collapse file tree 3 files changed +159
-0
lines changed Original file line number Diff line number Diff line change 1+ # Azure Storage Account creation with additional Resources
2+
3+ Configuration in this directory creates a set of Azure storage resources. Few of these resources added/excluded as per your requirement.
4+
5+ ## Module Usage
6+
7+ ## Storage Account with all additional features
8+
9+ Following example to create a storage account with containers and and SMB file shares resources.
10+
11+ ```
12+ module "storage" {
13+ source = "kumarvna/storage/azurerm"
14+ version = "1.0.0"
15+
16+ # Resource Group
17+ create_resource_group = true
18+ resource_group_name = "rg-demo-westeurope-01"
19+ location = "westeurope"
20+ storage_account_name = "storageaccwesteupore01"
21+
22+ # Container lists wiht access_type to create
23+ containers_list = [
24+ { name = "mystore250"
25+ access_type = "private"},
26+ { name = "blobstore251"
27+ access_type = "blob"},
28+ { name = "containter252"
29+ access_type = "container"}
30+ ]
31+
32+ # SMB file share with quota (GB) to create
33+ file_shares = [
34+ { name = "smbfileshare1"
35+ quota = 50 },
36+ { name = "smbfileshare2"
37+ quota = 50 }
38+ ]
39+
40+ # Tags for Azure resources
41+ tags = {
42+ Terraform = "true"
43+ Environment = "dev"
44+ Owner = "test-user"
45+ }
46+ }
47+ ```
48+
49+ ## Terraform Usage
50+
51+ To run this example you need to execute following Terraform commands
52+
53+ ```
54+ $ terraform init
55+ $ terraform plan
56+ $ terraform apply
57+ ```
58+
59+ Run ` terraform destroy ` when you don't need these resources.
Original file line number Diff line number Diff line change 1+ # Azure Storage Account creation with additional Resources
2+
3+ Configuration in this directory creates a set of Azure storage resources. Few of these resources added/excluded as per your requirement.
4+
5+ ## Module Usage
6+
7+ ## Storage account with Containers
8+
9+ Following example to create a storage account with a few containers.
10+
11+ ```
12+ module "storage" {
13+ source = "kumarvna/storage/azurerm"
14+ version = "1.0.0"
15+
16+ # Resource Group
17+ create_resource_group = true
18+ resource_group_name = "rg-demo-westeurope-01"
19+ location = "westeurope"
20+ storage_account_name = "storageaccwesteupore01"
21+
22+ # Container lists wiht access_type to create
23+ containers_list = [
24+ { name = "mystore250"
25+ access_type = "private"},
26+ { name = "blobstore251"
27+ access_type = "blob"},
28+ { name = "containter252"
29+ access_type = "container"}
30+ ]
31+
32+ # Tags for Azure resources
33+ tags = {
34+ Terraform = "true"
35+ Environment = "dev"
36+ Owner = "test-user"
37+ }
38+ }
39+ ```
40+
41+ ## Terraform Usage
42+
43+ To run this example you need to execute following Terraform commands
44+
45+ ```
46+ $ terraform init
47+ $ terraform plan
48+ $ terraform apply
49+ ```
50+
51+ Run ` terraform destroy ` when you don't need these resources.
Original file line number Diff line number Diff line change 1+ # Azure Storage Account creation with additional Resources
2+
3+ Configuration in this directory creates a set of Azure storage resources. Few of these resources added/excluded as per your requirement.
4+
5+ ## Module Usage
6+
7+ ## SMB File Shares
8+
9+ Following example to create a storage account with few SMB files shares.
10+
11+ ```
12+ module "storage" {
13+ source = "kumarvna/storage/azurerm"
14+ version = "1.0.0"
15+
16+ # Resource Group
17+ create_resource_group = true
18+ resource_group_name = "rg-demo-westeurope-01"
19+ location = "westeurope"
20+ storage_account_name = "storageaccwesteupore01"
21+
22+ # SMB file share with quota (GB) to create
23+ file_shares = [
24+ { name = "smbfileshare1"
25+ quota = 50 },
26+ { name = "smbfileshare2"
27+ quota = 50 }
28+ ]
29+
30+ # Tags for Azure resources
31+ tags = {
32+ Terraform = "true"
33+ Environment = "dev"
34+ Owner = "test-user"
35+ }
36+ }
37+ ```
38+
39+ ## Terraform Usage
40+
41+ To run this example you need to execute following Terraform commands
42+
43+ ```
44+ $ terraform init
45+ $ terraform plan
46+ $ terraform apply
47+ ```
48+
49+ Run ` terraform destroy ` when you don't need these resources.
You can’t perform that action at this time.
0 commit comments