back
terraform {
required_providers {
azurerm = ">= 2.54.0"
}
}
top
module "azurerm_storage_queue" {
source = "./modules/azurerm/r/azurerm_storage_queue"
# metadata - (optional) is a type of map of string
metadata = {}
# name - (required) is a type of string
name = null
# storage_account_name - (required) is a type of string
storage_account_name = null
timeouts = [{
create = null
delete = null
read = null
update = null
}]
}
top
variable "metadata" {
description = "(optional)"
type = map(string)
default = null
}
variable "name" {
description = "(required)"
type = string
}
variable "storage_account_name" {
description = "(required)"
type = string
}
variable "timeouts" {
description = "nested block: NestingSingle, min items: 0, max items: 0"
type = set(object(
{
create = string
delete = string
read = string
update = string
}
))
default = []
}
top
resource "azurerm_storage_queue" "this" {
# metadata - (optional) is a type of map of string
metadata = var.metadata
# name - (required) is a type of string
name = var.name
# storage_account_name - (required) is a type of string
storage_account_name = var.storage_account_name
dynamic "timeouts" {
for_each = var.timeouts
content {
# create - (optional) is a type of string
create = timeouts.value["create"]
# delete - (optional) is a type of string
delete = timeouts.value["delete"]
# read - (optional) is a type of string
read = timeouts.value["read"]
# update - (optional) is a type of string
update = timeouts.value["update"]
}
}
}
top
output "id" {
description = "returns a string"
value = azurerm_storage_queue.this.id
}
output "this" {
value = azurerm_storage_queue.this
}
top