-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathmain.tf
37 lines (32 loc) · 793 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "3.116.0"
}
}
}
provider "azurerm" {
features {}
}
#######################################################################
## Create Resource Group
#######################################################################
resource "azurerm_resource_group" "vwan-microhack-spoke-rg" {
name = "vwan-microhack-spoke-rg"
location = var.location-spoke-1
tags = {
environment = "spoke"
deployment = "terraform"
microhack = "vwan"
}
}
resource "azurerm_resource_group" "vwan-microhack-hub-rg" {
name = "vwan-microhack-hub-rg"
location = var.location-vwan
tags = {
environment = "hub"
deployment = "terraform"
microhack = "vwan"
}
}