Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 2.92 KB

File metadata and controls

60 lines (43 loc) · 2.92 KB

Azure Storage Account

A Terraform module for creating Azure storage account resources. .

Prerequisites

To use this module you need the following resources:

Module Features

This module creates a Azure storage account resources.

Getting Started

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"
  }
}

Module Argument Reference

See variables.tf

Module Attributes Reference

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 by Azure storage account id attribute
  • storage_account_name: The name of the created storage account returned by Azure storage account name attribute
  • primary_access_key: The primary access key for the created storage account returned by Azure storage account primary_access_key attribute
  • secondary_access_key: The secondary access key for the created storage account returned by Azure storage account secondary_access_key attribute

Samples

You have the samples in samples folder