Azure Storage Account Terraform Module
Terraform Module to create Azure Storage Account resource.
module "storage_account1" {
source = " ./vendor/modules/storage_account"
rg_name = " test-rg"
location = " eastus"
storage_account_name = " stgacc01"
network_rules = {
bypass = [" AzureServices" ]
ip_rules = []
subnet_ids = [" subnetid" ]
}
# Adding TAG's to your Azure resources (Required)
tags = {
c_environment = " dev"
c_cloud = " azure"
}
}
Make sure to update terraform-docs generated section whenever new resource block, New input or output variable is added.
No modules.
Name
Description
Type
Default
Required
account_kind
Defines the Kind of account. Valid options are BlobStorage, BlockBlobStorage, FileStorage, Storage and StorageV2.
string
"StorageV2"
no
account_replication_type
Defines the type of replication to use for this storage account. Valid options are LRS, GRS, RAGRS, ZRS, GZRS and RAGZRS.
string
"GRS"
no
account_tier
Defines the Tier to use for this storage account. Valid options are Standard and Premium. For BlockBlobStorage and FileStorage accounts only Premium is valid.
string
"Standard"
no
location
Azure location for deployment
string
"East US"
no
min_tls_version
The minimum supported TLS version for the storage account. Possible values are TLS1_0, TLS1_1, and TLS1_2.
string
"TLS1_2"
no
network_rules
Network rules restricing access to the storage account.
object({ bypass = list(string), ip_rules = list(string), subnet_ids = list(string) })
null
no
rg_name
Name of an Resource Group
string
n/a
yes
storage_account_name
Specifies the name of the storage account
string
n/a
yes
tags
A map of tags to add to all resources
map(string)
{}
no