Created
February 8, 2024 18:17
-
-
Save dustindortch/8b96b7516a611d7275e8d9a185604a54 to your computer and use it in GitHub Desktop.
Terraform Best Practices: Do Not Hard Code Values - Hard Coded Resource Group
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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