azure-storage-sas
datarootsio/azure-storage-sas/module
Terraform module for Azure Storage SAS tokens
Install
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.    
| Name | Type | Description | Default |
|---|---|---|---|
| storage_container_name | string | Name of the storage container. Leave this empty to create a SAS token for the co | required |
| rotation_hours | number | How many hours until a new token should be created. Exactly one of the rotation | required |
| rotation_months | number | How many months until a new token should be created. Exactly one of the rotation | required |
| rotation_years | number | How many years until a new token should be created. Exactly one of the rotation | required |
| storage_account_name | string | Name of the storage account | required |
| start | string | Start of SAS token validity. Defaults to now. | required |
| rotation_days | number | How many days until a new token should be created. Exactly one of the rotation a | required |
| rotation_minutes | number | How many minutes until a new token should be created. Exactly one of the rotatio | required |
| resource_group_name | string | Name of the resource group | required |
| signed_version | string | (Optional) Specifies the signed storage service version to use to authorize req | "2017-07-29" |
| rotation_margin | string | Margin to set on the validity of the SAS token. The SAS token remains valid for | "24h" |
| write | bool | Collection of all writing-related permissions (includes creation and deletion). | true |
Outputs (1)
sas — SAS tokenResources (1)
Topics & Tags
Details
Similar packages
Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,