Skip to content

Commit

Permalink
shared_access_key_enabled Added (#32)
Browse files Browse the repository at this point in the history
* shared_access_key_enabled Added

* terraform-docs: automated action

Co-authored-by: jhisc <jhisc@users.noreply.github.com>
  • Loading branch information
jhisc and jhisc authored Sep 7, 2021
1 parent aa00afe commit 4a0fe95
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ This module will create a storage account.
| replication\_type | Storage account replication type - i.e. LRS, GRS, RAGRS, ZRS, GZRS, RAGZRS. | `string` | n/a | yes |
| resource\_group\_name | name of the resource group to create the resource | `string` | n/a | yes |
| service\_endpoints | Creates a virtual network rule in the subnet\_id (values are virtual network subnet ids). | `map(string)` | `{}` | no |
| shared\_access\_key\_enabled | Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key | `bool` | `false` | no |
| tags | tags to be applied to resources | `map(string)` | n/a | yes |
| traffic\_bypass | Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Valid options are any combination of Logging, Metrics, AzureServices, or None. | `list(string)` | <pre>[<br> "None"<br>]</pre> | no |

Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ resource "azurerm_storage_account" "sa" {
enable_https_traffic_only = var.enable_https_traffic_only
min_tls_version = var.min_tls_version
nfsv3_enabled = var.nfsv3_enabled
shared_access_key_enabled = var.shared_access_key_enabled

identity {
type = "SystemAssigned"
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,10 @@ variable "default_network_rule" {
condition = (contains(["deny", "allow"], lower(var.default_network_rule)))
error_message = "The default_network_rule must be either \"Deny\" or \"Allow\"."
}
}

variable "shared_access_key_enabled" {
description = "Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key"
type = bool
default = false
}

0 comments on commit 4a0fe95

Please sign in to comment.