I'm writing sort of wrapper module for azurerm_storage_account.
azurerm_storage_account has optional block
static_website {
index_document = string
error_404_document = string
}
I want to set it based on variable and I'm not really sure how can I do that? Conditional operators don't really work for blocks (e.g. static_website = var.disable ? null : { .. } )
Or do blocks work in such a way that if I'd set index_document and error_404_document to null it'd be the same as not setting static_website block altogether?