Deploys a Azure Storage Account with versioning enabled, soft-delete capabilities and other security options
This Terraform module deploys a Storage Account on Azure.
- Name Convention specified as
sa<string><randomstring>. <randomstring>
is calculated withrandom_string
resource.
module "storage" {
source = "github.com/imjoseangel/terraform-azurerm-storage"
resource_group_name = var.terraform_rsg
create_resource_group = false
location = var.location
name = var.tf_name
skuname = "Standard_ZRS"
containers_list = [
{ name = "tfstate", access_type = "private" }
]
tags = {
role = "terraform"
environment = "development"
}
depends_on = [
module.keyvault
]
}
resource "azurerm_key_vault_secret" "storage" {
name = var.tf_name
value = module.storage.storage_primary_access_key
key_vault_id = module.keyvault.id
}
Originally created by imjoseangel