Skip to content

Instantly share code, notes, and snippets.

@dustindortch
Created February 8, 2024 18:17
Show Gist options
  • Save dustindortch/8b96b7516a611d7275e8d9a185604a54 to your computer and use it in GitHub Desktop.
Save dustindortch/8b96b7516a611d7275e8d9a185604a54 to your computer and use it in GitHub Desktop.
Terraform Best Practices: Do Not Hard Code Values - Hard Coded Resource Group
variable "location" {
default = "eastus"
description = "Azure deployment region"
type = string
}
variable "resource_group_name" {
default = "rg-eus-test-myrg"
description = "Resource Group name for deployment"
type = string
}
resource "azurerm_resource_group" "rg" {
name = var.resource_group_name
location = var.location
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment