Skip to content

dodevops/terraform-azure-state

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

module "state" {
  source = "dodevops/state/azure"
  version = "<version>"
}

Requirements

No requirements.

Providers

The following providers are used by this module:

  • azurerm

Modules

No modules.

Resources

The following resources are used by this module:

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 terraform-docs to generate the API documentation by running

terraform fmt .
terraform-docs .