Code Monkey home page Code Monkey logo

terraform-azurerm-rg's Introduction

Azure Resource Group

Changelog Notice Apache V2 License TF Registry

Common Azure terraform module to create a Resource Group with optional lock.

Version compatibility

Module version Terraform version AzureRM version
>= 3.x.x 0.12.x >= 2.0
>= 2.x.x, < 3.x.x 0.12.x < 2.0
< 2.x.x 0.11.x < 2.0

Usage

This module is optimized to work with the Claranet terraform-wrapper tool which set some terraform variables in the environment needed by this module. More details about variables set by the terraform-wrapper available in the documentation.

module "azure-region" {
  source  = "claranet/regions/azurerm"
  version = "x.x.x"

  azure_region = var.azure_region
}

module "rg" {
  source  = "claranet/rg/azurerm"
  version = "x.x.x"

  location    = module.azure-region.location
  client_name = var.client_name
  environment = var.environment
  stack       = var.stack
}

Inputs

Name Description Type Default Required
client_name Client name/account used in naming string n/a yes
custom_rg_name Optional custom resource group name string "" no
environment Project environment string n/a yes
extra_tags Extra tags to add map(string) {} no
location Azure region to use string n/a yes
lock_level Specifies the Level to be used for this RG Lock. Possible values are Empty (no lock), CanNotDelete and ReadOnly. string "" no
stack Project stack name string n/a yes

Outputs

Name Description
resource_group_id Resource group generated id
resource_group_location Resource group location (region)
resource_group_name Resource group name

Related documentation

Terraform Azure RG documentation: terraform.io/docs/providers/azurerm/r/resource_group.html

Terraform Lock management documentation: terraform.io/docs/providers/azurerm/r/management_lock.html

terraform-azurerm-rg's People

Contributors

abrefort avatar bzspi avatar jnancel avatar rossifumax avatar shr3ps 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.