Skip to content

Instantly share code, notes, and snippets.

@sathishjayapal
Created October 6, 2022 02:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sathishjayapal/e4e3020c86dca828675d9a4254df1da9 to your computer and use it in GitHub Desktop.
Save sathishjayapal/e4e3020c86dca828675d9a4254df1da9 to your computer and use it in GitHub Desktop.
sample for multiple providers template
terraform {
#Required Terraform version
required_version = "~>1.3.1"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=3.0, <=3.24.0"
}
}
}
provider "azurerm" {
features {}
}
provider "azurerm" {
features {
virtual_machine {
delete_os_disk_on_deletion = false
}
}
alias = "azure-westus"
}
resource "azurerm_resource_group" "sathish-sep30-rg" {
location = "eastus"
name = "sathish-oct-eastus-rg"
tags = {
name = "sep30created"
}
}
resource "azurerm_resource_group" "sathish-oct05-rg" {
location = "westus"
name = "sathish-oct-westus-rg"
tags = {
name = "oct05created"
}
provider = "azurerm.azure-westus"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment