Skip to content

Latest commit

 

History

History
77 lines (68 loc) · 5.39 KB

File metadata and controls

77 lines (68 loc) · 5.39 KB

Azure - Storage Account Module

This module will create a storage account.

Requirements

Name Version
terraform >=1.0
azurerm ~> 2.72
random ~> 3.1

Providers

Name Version
azurerm ~> 2.72
random ~> 3.1

Inputs

Name Description Type Default Required
access_list Map of CIDRs Storage Account access. map(string) {} no
access_tier Defines the access tier for BlobStorage, FileStorage and StorageV2 accounts string "Hot" no
account_kind Defines the Kind of account. Valid options are BlobStorage, BlockBlobStorage, FileStorage, Storage and StorageV2 string "StorageV2" no
account_tier Defines the Tier to use for this storage account (Standard or Premium). string null no
allow_blob_public_access Allow or disallow public access to all blobs or containers in the storage account. bool false no
blob_cors blob service cors rules: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_account#cors_rule
map(object({
allowed_headers = list(string)
allowed_methods = list(string)
allowed_origins = list(string)
exposed_headers = list(string)
max_age_in_seconds = number
}))
null no
blob_delete_retention_days Retention days for deleted blob. Valid value is between 1 and 365. number 7 no
custom_404_path path from your repo root to your custom 404 page string null no
enable_hns Enable Hierarchical Namespace (can be used with Azure Data Lake Storage Gen 2). bool false no
enable_https_traffic_only Forces HTTPS if enabled. bool true no
enable_infrastructure_encryption Controls if infrastructure encryption is enabled. more info https://docs.microsoft.com/en-us/azure/storage/common/infrastructure-encryption-enable?tabs=portal bool true no
enable_large_file_share Enable Large File Share. bool false no
enable_static_website Controls if static website to be enabled on the storage account. Possible values are true or false bool false no
index_path path from your repo root to index.html string null no
location Specifies the supported Azure location to MySQL server resource string n/a yes
min_tls_version The minimum supported TLS version for the storage account. string "TLS1_2" no
name Storage account name. string null no
names names to be applied to resources map(string) n/a yes
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
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)
[
"None"
]
no

Outputs

Name Description
encryption_scope_id n/a
id The ID of the Storage Account.
name The name of the Storage Account.
primary_access_key The primary access key for the storage account.
primary_blob_endpoint The endpoint URL for blob storage in the primary location.
primary_blob_host The endpoint host for blob storage in the primary location.
primary_connection_string The connection string associated with the primary location.
primary_dfs_endpoint The endpoint URL for DFS storage in the primary location.
primary_file_endpoint The endpoint URL for file storage in the primary location.
primary_queue_endpoint The endpoint URL for queue storage in the primary location.
primary_table_endpoint The endpoint URL for table storage in the primary location.
primary_web_endpoint The endpoint URL for web storage in the primary location.
principal_id The Principal ID for the Service Principal associated with the Identity of this Storage Account.
sa The Storage Account object.
secondary_access_key The secondary access key for the storage account.
secondary_blob_endpoint The endpoint URL for blob storage in the secondary location.
secondary_blob_host The endpoint host for blob storage in the secondary location.
secondary_connection_string The connection string associated with the secondary location.
secondary_dfs_endpoint The endpoint URL for DFS storage in the secondary location.
secondary_file_endpoint The endpoint URL for file storage in the secondary location.
secondary_queue_endpoint The endpoint URL for queue storage in the secondary location.
secondary_table_endpoint The endpoint URL for table storage in the secondary location.
secondary_web_endpoint The endpoint URL for web storage in the secondary location.
tenant_id The Tenant ID for the Service Principal associated with the Identity of this Storage Account.