azure-storage-sas

datarootsio/azure-storage-sas/module

Terraform Module HCL MODULE

Terraform module for Azure Storage SAS tokens

Install
module "azure-storage-sas" {
source = "datarootsio/azure-storage-sas/module"
version = "1.2.0"
}
plain text: /constructs/tfmod-datarootsio-azure-storage-sas-module/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform module for Azure Storage SAS tokens Facilitates the use of rotating SAS tokens in Terraform modules. When you simply use azurerm_storage_account_sas or azurerm_storage_account_blob_container_sas with the timestamp() and timeadd() functions, you'll notice that the tokens are updated on each call to terraform apply. This module avoids that and still allows you to rotate the SAS token. You simply tell the module how often the SAS token should rotate. Note that you should run terraform apply to actually rotate the token when needed. Tested on Terraform 0.12.29 and 0.13.2. ![maintained by dataroots](https://dataroots.io) ![Terraform version](https://www.terraform.io) ![Terraform Registry](https://registry.terraform.io/modules/datarootsio/azure-storage-sas/module) ![build](https://gith

Inputs (12)
NameTypeDescriptionDefault
storage_container_namestringName of the storage container. Leave this empty to create a SAS token for the co required
rotation_hoursnumberHow many hours until a new token should be created. Exactly one of the rotation required
rotation_monthsnumberHow many months until a new token should be created. Exactly one of the rotation required
rotation_yearsnumberHow many years until a new token should be created. Exactly one of the rotation required
storage_account_namestringName of the storage account required
startstringStart of SAS token validity. Defaults to now. required
rotation_daysnumberHow many days until a new token should be created. Exactly one of the rotation a required
rotation_minutesnumberHow many minutes until a new token should be created. Exactly one of the rotatio required
resource_group_namestringName of the resource group required
signed_versionstring (Optional) Specifies the signed storage service version to use to authorize req"2017-07-29"
rotation_marginstringMargin to set on the validity of the SAS token. The SAS token remains valid for "24h"
writeboolCollection of all writing-related permissions (includes creation and deletion).true
Outputs (1)
sas — SAS token
Resources (1)
time_rotating
Details
FrameworkTerraform Module
LanguageHCL
Version1.2.0
Cloud MODULE
★ Stars1
Forks4
Total downloads40.0k
Inputs12
Outputs1
Resources1
LicenseMIT
Namespacedatarootsio
Updated