https://github.com/dodevops/terraform-azure-state
Highly opinionated Terraform State management for Azure
https://github.com/dodevops/terraform-azure-state
azurerm terraform-module terraform-states
Last synced: 17 days ago
JSON representation
Highly opinionated Terraform State management for Azure
- Host: GitHub
- URL: https://github.com/dodevops/terraform-azure-state
- Owner: dodevops
- License: mit
- Created: 2021-05-04T11:56:51.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-02T11:42:29.000Z (over 1 year ago)
- Last Synced: 2026-04-01T14:20:01.244Z (3 months ago)
- Topics: azurerm, terraform-module, terraform-states
- Language: HCL
- Homepage: https://registry.terraform.io/modules/dodevops/state/azure/latest
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform state management (for Azure)
## Introduction
This module manages storage for Terraform states and is usually used in the Terraform "state" module as a base
for other modules' backend configuration.
## Usage
Instantiate the module by calling it from Terraform like this:
```hcl
module "state" {
source = "dodevops/state/azure"
version = ""
}
```
## Requirements
The following requirements are needed by this module:
- terraform (>=1.9.0)
- azurerm (>=4.0.0)
## Providers
The following providers are used by this module:
- azurerm (>=4.0.0)
## Modules
No modules.
## Resources
The following resources are used by this module:
- [azurerm_storage_account.storage-account](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_account) (resource)
- [azurerm_storage_container.storage-container](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_container) (resource)
## Required Inputs
The following input variables are required:
### location
Description: The azure location used for azure
Type: `string`
### project
Description: Three letter project key
Type: `string`
### resource\_group
Description: Name of the resource group to use
Type: `string`
### stage
Description: Name of the stage for this state
Type: `string`
## Optional Inputs
The following input variables are optional (have default values):
### delete\_retention\_policy
Description: Days until soft deleted resources are hard deleted
Type: `number`
Default: `7`
### tags
Description: Map of tags for the resources
Type: `map(any)`
Default: `{}`
## Outputs
No outputs.
## Development
Use [the terraform module tools](https://github.com/dodevops/terraform-module-tools) to check and generate the documentation by running
docker run -v "$PWD":/terraform ghcr.io/dodevops/terraform-module-tools:latest