-
Notifications
You must be signed in to change notification settings - Fork 0
/
AVSET.tf
83 lines (75 loc) · 2.05 KB
/
AVSET.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "2.75.0"
}
}
backend "azurerm" {
resource_group_name = "ResourceGroup-1"
storage_account_name = "terraformstorageac1234"
container_name = "terraform"
key = "AVSET.tfstate"
}
}
provider "azurerm" {
# Configuration options
features {
}
}
locals{
location = "EastUS"
ResourceGroup = "ResourceGroup-1"
updateDomain = 6
faultDomain = 2
}
resource "azurerm_availability_set" "AVSET1" {
name = "AvailabilitySet1"
location = local.location
resource_group_name = local.ResourceGroup
tags = {
environment = "Production"
}
platform_update_domain_count = local.updateDomain
platform_fault_domain_count = local.faultDomain
}
resource "azurerm_availability_set" "AVSET2" {
name = "AvailabilitySet2"
location = local.location
resource_group_name = local.ResourceGroup
tags = {
environment = "Dev"
}
platform_update_domain_count = local.updateDomain
platform_fault_domain_count = local.faultDomain
}
resource "azurerm_availability_set" "AVSET3" {
name = "AvailabilitySet3"
location = local.location
resource_group_name = local.ResourceGroup
tags = {
environment = "Stakeholders"
}
platform_update_domain_count = local.updateDomain
platform_fault_domain_count = local.faultDomain
}
resource "azurerm_availability_set" "AVSET4" {
name = "AvailabilitySet4"
location = local.location
resource_group_name = local.ResourceGroup
tags = {
environment = "Financer"
}
platform_update_domain_count = local.updateDomain
platform_fault_domain_count = local.faultDomain
}
resource "azurerm_availability_set" "AVSET5" {
name = "AvailabilitySet5"
location = local.location
resource_group_name = local.ResourceGroup
tags = {
environment = "Corporator"
}
platform_update_domain_count = local.updateDomain
platform_fault_domain_count = local.faultDomain
}