Skip to content

Latest commit

 

History

History
79 lines (60 loc) · 3.72 KB

File metadata and controls

79 lines (60 loc) · 3.72 KB

Azure Storage Table

A Terraform module for creating Azure Storage Table resources. .

Prerequisites

To use this module you need the following resources:

Module Features

This module creates a Azure Storage Table resources and Azure Storage Account resources if needed.

Getting Started

Most basic usage creating a Azure Storage Table resource.

module "queue" {
  source                   = "."
  account_id               = azurerm_storage_account.account.id
  account_name             = azurerm_storage_account.account.name
  resource_group_name      = azurerm_resource_group.rg.name
  location                 = azurerm_resource_group.rg.location
  environment              = "development"
  queue_name               = "queue"
  tags = {
    environment = "Demo"
  }
}

Creating a Azure Storage Table resource and also an Azure Storage Account resource

module "queue" {
  source                   = "../../../modules/storage/queue"
  account_name             = "accountsample"
  account_kind             = "StorageV2"
  account_tier             = "Standard"
  account_replication_type = "GRS"
  resource_group_name      = azurerm_resource_group.rg.name
  location                 = azurerm_resource_group.rg.location
  environment              = "development"
  queue_name               = "queue"
  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
  • storage_table_id: The id of the created storage table returned by Azure Storage Queue id attribute
  • storage_table_name: The name of the created storage table returned by Azure Storage Queue name attribute

Samples

You have the samples in samples folder