Manages an Azure Resource Group name.
On Apple macOS, install Homebrew and packages:
brew install azure-cli
brew install jq
brew install terraform
On other platforms, install the appropriate packages.
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
}