Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarvit committed May 6, 2020
1 parent 53e117e commit 5620a35
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 0 deletions.
59 changes: 59 additions & 0 deletions examples/complete/README.md
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.
51 changes: 51 additions & 0 deletions examples/storage_account_with_containers/README.md
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.
49 changes: 49 additions & 0 deletions examples/storage_account_with_fileshares/README.md
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.

0 comments on commit 5620a35

Please sign in to comment.