A Terraform module for creating
Azure storage account
resources.
.
To use this module you need the following resources:
This module creates a Azure storage account
resources.
Most basic usage creating a Azure storage account
resource and an Azure storage account
resource.
module "account" {
source = "."
environment = "development"
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
account_name = "accountsample"
account_kind = "StorageV2"
account_tier = "Standard"
account_replication_type = "GRS"
tags = {
environment = "Demo"
}
}
See variables.tf
in addition of all arguments above the following attributes are exported by the module:
storage_account_id
: The id of the created storage account returned byAzure storage account
id
attributestorage_account_name
: The name of the created storage account returned byAzure storage account
name
attributeprimary_access_key
: The primary access key for the created storage account returned byAzure storage account
primary_access_key
attributesecondary_access_key
: The secondary access key for the created storage account returned byAzure storage account
secondary_access_key
attribute
You have the samples in samples folder