-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
159 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Azure Storage Account creation with additional Resources | ||
|
||
Configuration in this directory creates a set of Azure storage resources. Few of these resources added/excluded as per your requirement. | ||
|
||
## Module Usage | ||
|
||
## Storage Account with all additional features | ||
|
||
Following example to create a storage account with containers and and SMB file shares resources. | ||
|
||
``` | ||
module "storage" { | ||
source = "kumarvna/storage/azurerm" | ||
version = "1.0.0" | ||
# Resource Group | ||
create_resource_group = true | ||
resource_group_name = "rg-demo-westeurope-01" | ||
location = "westeurope" | ||
storage_account_name = "storageaccwesteupore01" | ||
# Container lists wiht access_type to create | ||
containers_list = [ | ||
{ name = "mystore250" | ||
access_type = "private"}, | ||
{ name = "blobstore251" | ||
access_type = "blob"}, | ||
{ name = "containter252" | ||
access_type = "container"} | ||
] | ||
# SMB file share with quota (GB) to create | ||
file_shares = [ | ||
{ name = "smbfileshare1" | ||
quota = 50 }, | ||
{ name = "smbfileshare2" | ||
quota = 50 } | ||
] | ||
# Tags for Azure resources | ||
tags = { | ||
Terraform = "true" | ||
Environment = "dev" | ||
Owner = "test-user" | ||
} | ||
} | ||
``` | ||
|
||
## Terraform Usage | ||
|
||
To run this example you need to execute following Terraform commands | ||
|
||
``` | ||
$ terraform init | ||
$ terraform plan | ||
$ terraform apply | ||
``` | ||
|
||
Run `terraform destroy` when you don't need these resources. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Azure Storage Account creation with additional Resources | ||
|
||
Configuration in this directory creates a set of Azure storage resources. Few of these resources added/excluded as per your requirement. | ||
|
||
## Module Usage | ||
|
||
## Storage account with Containers | ||
|
||
Following example to create a storage account with a few containers. | ||
|
||
``` | ||
module "storage" { | ||
source = "kumarvna/storage/azurerm" | ||
version = "1.0.0" | ||
# Resource Group | ||
create_resource_group = true | ||
resource_group_name = "rg-demo-westeurope-01" | ||
location = "westeurope" | ||
storage_account_name = "storageaccwesteupore01" | ||
# Container lists wiht access_type to create | ||
containers_list = [ | ||
{ name = "mystore250" | ||
access_type = "private"}, | ||
{ name = "blobstore251" | ||
access_type = "blob"}, | ||
{ name = "containter252" | ||
access_type = "container"} | ||
] | ||
# Tags for Azure resources | ||
tags = { | ||
Terraform = "true" | ||
Environment = "dev" | ||
Owner = "test-user" | ||
} | ||
} | ||
``` | ||
|
||
## Terraform Usage | ||
|
||
To run this example you need to execute following Terraform commands | ||
|
||
``` | ||
$ terraform init | ||
$ terraform plan | ||
$ terraform apply | ||
``` | ||
|
||
Run `terraform destroy` when you don't need these resources. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Azure Storage Account creation with additional Resources | ||
|
||
Configuration in this directory creates a set of Azure storage resources. Few of these resources added/excluded as per your requirement. | ||
|
||
## Module Usage | ||
|
||
## SMB File Shares | ||
|
||
Following example to create a storage account with few SMB files shares. | ||
|
||
``` | ||
module "storage" { | ||
source = "kumarvna/storage/azurerm" | ||
version = "1.0.0" | ||
# Resource Group | ||
create_resource_group = true | ||
resource_group_name = "rg-demo-westeurope-01" | ||
location = "westeurope" | ||
storage_account_name = "storageaccwesteupore01" | ||
# SMB file share with quota (GB) to create | ||
file_shares = [ | ||
{ name = "smbfileshare1" | ||
quota = 50 }, | ||
{ name = "smbfileshare2" | ||
quota = 50 } | ||
] | ||
# Tags for Azure resources | ||
tags = { | ||
Terraform = "true" | ||
Environment = "dev" | ||
Owner = "test-user" | ||
} | ||
} | ||
``` | ||
|
||
## Terraform Usage | ||
|
||
To run this example you need to execute following Terraform commands | ||
|
||
``` | ||
$ terraform init | ||
$ terraform plan | ||
$ terraform apply | ||
``` | ||
|
||
Run `terraform destroy` when you don't need these resources. |