Git Product home page Git Product logo

terraform-azurerm-rg's Introduction

resource "azurerm_resource_group" "this" {
  name     = var.name
  location = var.location
  tags     = var.tags
}

resource "azurerm_management_lock" "rg_lock" {
  count      = var.lock_level != null && var.lock_level != "" ? 1 : 0
  name       = "lock-${var.name}"
  scope      = azurerm_resource_group.this.id
  lock_level = var.lock_level
  notes      = "Resource Group '${var.name}' is locked with '${var.lock_level}' level."
}

Requirements

No requirements.

Providers

Name Version
azurerm 3.72.0

Modules

No modules.

Resources

Name Type
azurerm_management_lock.rg_lock resource
azurerm_resource_group.this resource

Inputs

Name Description Type Default Required
location The location (region) the resource should be put in, e.g. uksouth string n/a yes
lock_level The name of the lock_level, can only be CanNotDelete or Readonly string null no
name The name of the resource string n/a yes
tags The tags assigned to the resource map(string) n/a yes

Outputs

Name Description
rg_id Resource group generated id
rg_location Resource group location (region)
rg_lock_id The id of the resource group lock
rg_lock_level The lock-level of the resource group lock
rg_name The name of the resource group
rg_tags The tags of the resource group

terraform-azurerm-rg's People

Contributors

craigthackerx 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.