Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Latest commit

 

History

History
41 lines (31 loc) · 1000 Bytes

README.md

File metadata and controls

41 lines (31 loc) · 1000 Bytes

Azure Resource Group name module

Manages an Azure Resource Group name.

Prerequisites

On Apple macOS, install Homebrew and packages:

brew install azure-cli
brew install jq
brew install terraform

On other platforms, install the appropriate packages.

Usage

Copy and paste into your Terraform configuration, insert the variables, and run terraform init:

variable "project" {}
variable "location" {}

module "rg_name" {
  source   = "github.com/sicz/terraform-azure/resource-name"
  name     = var.project
  location = var.location

  # Insert optional input variables here
}

module "rg" {
  source   = "github.com/sicz/terraform-azure/resource-group"
  name     = module.rg_name.result
  location = var.location

  # Insert optional input variables here
}