This is a Dynamic modules in Terraform to create Azure Storage Account in a subnet.
- main.tf : contains all the resources which will be created with
terraform apply
command. - variables.tf : contains all variables required to create the resources.
- outputs.tf : contains output attributes of the resources.
- Azure Storage Account
- Network profile( configured a subnet_id, let subnet resources will be able to communicate with the storage account privately.)
- Azure Storage Container
- Azure Storage Account only allows name with 24 characters long and letters and numbers, does not allow any special characters.
- Format of storage account name
<environment>k8ssandrastorageaccount
.
- Format of storage account name
Name | Version |
---|---|
azurerm | n/a |
No modules.
Name | Type |
---|---|
azurerm_storage_account.storage_account | resource |
azurerm_storage_container.storage_container | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
account_tier | The Storage Acount tier. | string |
"standard" |
no |
environment | Name of the environment where infrastructure being built. | string |
n/a | yes |
location | Azure location where all the resources being created. | string |
n/a | yes |
name | Name is the prefix to use for resources that needs to be created. | string |
n/a | yes |
private_subnet | The subnet id of the virtual network where the virtual machines will reside. | string |
n/a | yes |
replication_type | The Storage Account Replication type. | string |
"LRS" |
no |
resource_group_name | The name of the resource group in which the resources will be created. | string |
n/a | yes |
tags | A map of the tags to use on the resources that are deployed with this module. | map(string) |
{} |
no |
Name | Description |
---|---|
storage_account_id | Azure Storage account id. |
storage_container_id | Azure storage container id |