-
Notifications
You must be signed in to change notification settings - Fork 1
/
backend.tf
65 lines (58 loc) · 1.68 KB
/
backend.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
terraform {
backend "azurerm" {
resource_group_name = "nonprod-storage-account-rg"
storage_account_name = "nonprod"
container_name = "terraform"
key = "spoke/scus/template.tfstate"
}
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "3.42.0"
}
}
required_version = "1.3.5"
}
provider "azurerm" {
client_id = var.client_id
client_secret = var.client_secret
subscription_id = var.subscription_id
tenant_id = var.tenant_id
skip_provider_registration = true
features {
resource_group {
prevent_deletion_if_contains_resources = false
}
}
}
provider "azurerm" {
client_id = trimspace(var.client_id)
client_secret = trimspace(var.client_secret)
tenant_id = trimspace(var.tenant_id)
alias = "spoke-subscription"
skip_provider_registration = true
subscription_id = trimspace(var.subscription_id)
features {
resource_group {
prevent_deletion_if_contains_resources = false
}
}
}
provider "azurerm" {
client_id = trimspace(var.client_id)
client_secret = trimspace(var.client_secret)
tenant_id = trimspace(var.tenant_id)
features {
resource_group {
prevent_deletion_if_contains_resources = false
}
}
alias = "hub-subscription"
skip_provider_registration = true
subscription_id = trimspace(var.hub_subscription_id)
}
provider "azuread" {
client_id = trimspace(var.client_id)
client_secret = trimspace(var.client_secret)
tenant_id = trimspace(var.tenant_id)
}