Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/azure/storage_account_public/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ resource "azurerm_storage_account" "storage_account" {

blob_properties {
change_feed_enabled = var.change_feed_enabled
versioning_enabled = var.versioning_enabled

dynamic "cors_rule" {
for_each = var.cors_rules
Expand Down
6 changes: 6 additions & 0 deletions modules/azure/storage_account_public/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ variable "delete_retention_policy_days" {
default = null
}

variable "versioning_enabled" {
type = bool
description = "Enable or disable blob versioning. Azure keeps versioning on for as long as an object replication policy uses this account as its source and rejects an update that turns it off, so such an account has to set this to true."
default = false
}

variable "change_feed_enabled" {
type = bool
description = "Enable or disable the blob service change feed. Azure keeps the change feed on for as long as an object replication policy uses this account as its source and rejects an update that turns it off, so such an account has to set this to true."
Expand Down
Loading