Giter VIP home page Giter VIP logo

terraform-azurerm-state-backend's Introduction

Terraform Module for Azure based State Backend

This module deploys an Azure Storage Account (including Blob container) along with a dedicated Resource Group which can act as Terraform State Backend.

How to use this module

Although the module can be customized to fit your individual requirements, you can use the module and rely on default configuration values to get up and running quickly:

provider "azurerm" {
  features {}
}

module "state_backend" {
  source = "ThorstenHans/state-backend/azurerm"
  
  resource_group_name  = "rg-tf-state"
  location             = "westeurope"
  storage_account_name = "tfmodteststate"
}

Optionally, you can override module's default configuration values:

provider "azurerm" {
  features {}
}

module "complex_state_backend" {
  source  = "ThorstenHans/state-backend/azurerm"
  version = "0.0.1"

  # Configure Azure Resource Group
  resource_group_name = "complex-tf-state"

  # Configure Azure Storage Account
  storage_account_name             = "complextfstate"
  storage_account_tier             = "Standard"
  storage_account_replication_type = "GRS"
  storage_account_access_tier      = "Hot"

  # Configure Azure Blob Container
  storage_container_name        = "complex-state"
  storage_container_access_type = "private"

  # Azure Management Lock
  create_lock = true

  # Configuration values applied to all resources
  location = "westeurope"
  tags = {
    project     = "Complex Sample Project",
    responsible = "Thorsten Hans"
  }
}

Module Outputs

The module provides essential outputs, you can use in your projects to configure state backend

  • storage_account_name
  • primary_access_key (sensitive)
  • secondary_access_key (sensitive)
  • primary_connection_string (sensitive)
  • secondary_connection_string (sensitive)
  • primary_blob_connection_string (sensitive)
  • secondary_blob_connection_string (sensitive)

terraform-azurerm-state-backend's People

Contributors

thorstenhans avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.