A Terraform module for creating
Azure Storage Queue
resources.
.
To use this module you need the following resources:
This module creates a Azure Storage Queue
resources and Azure Storage Account
resources if needed.
Most basic usage creating a Azure Storage Queue
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 Queue
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"
}
}
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
attributestorage_queue_id
: The id of the created storage queue returned byAzure Storage Queue
id
attributestorage_queue_name
: The id of the created storage queue returned byAzure Storage Queue
name
attribute
You have the samples in samples folder