Skip to content

Instantly share code, notes, and snippets.

@carlosdoliveira
Created April 23, 2022 00:43
Show Gist options
  • Save carlosdoliveira/31131329d7b7d9a96c3825719f46c9d4 to your computer and use it in GitHub Desktop.
Save carlosdoliveira/31131329d7b7d9a96c3825719f46c9d4 to your computer and use it in GitHub Desktop.
Este exemplo mostra como a organização do código fica muito melhor, quando indentado corretamente.
variable "tags" {
type = map(any)
default = {
env = "dev"
owner = "Cloudsquad"
Project = "Documentation"
}
variable "location" {
type = string
default = "eastus2"
}
variable "resource_group_name" {
type = string
default = "rg_test"
}
resource "azurerm_resource_group" "rg" {
name = var.resource_group_name
location = var.location
tags = var.tags
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment