-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathproviders.hcl
116 lines (104 loc) · 2.82 KB
/
providers.hcl
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Copyright (c) University College London Hospitals NHS Foundation Trust
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
locals {
terraform_version = "1.3.7"
azure_provider = <<EOF
provider "azurerm" {
features {
resource_group {
prevent_deletion_if_contains_resources = var.accesses_real_data
}
key_vault {
# Only purge on destroy when purge protection is not enabled
purge_soft_delete_on_destroy = !var.accesses_real_data
purge_soft_deleted_secrets_on_destroy = !var.accesses_real_data
purge_soft_deleted_certificates_on_destroy = !var.accesses_real_data
purge_soft_deleted_keys_on_destroy = !var.accesses_real_data
# When recreating an environment, recover any previously soft deleted secrets if in prod
recover_soft_deleted_key_vaults = var.accesses_real_data
recover_soft_deleted_secrets = var.accesses_real_data
recover_soft_deleted_certificates = var.accesses_real_data
recover_soft_deleted_keys = var.accesses_real_data
}
}
}
EOF
required_provider_azure = <<EOF
azurerm = {
source = "hashicorp/azurerm"
version = "3.47.0"
}
EOF
required_provider_azuread = <<EOF
azuread = {
source = "hashicorp/azuread"
version = "2.35.0"
}
EOF
required_provider_random = <<EOF
random = {
source = "hashicorp/random"
version = "3.4.3"
}
EOF
required_provider_databricks = <<EOF
databricks = {
source = "databricks/databricks"
version = "1.25.1"
configuration_aliases = [ databricks.accounts ]
}
EOF
required_provider_external = <<EOF
external = {
source = "hashicorp/external"
version = "2.3.1"
}
EOF
required_provider_null = <<EOF
null = {
source = "hashicorp/null"
version = "3.2.1"
}
EOF
required_provider_github = <<EOF
github = {
source = "integrations/github"
version = "5.18.3"
}
EOF
required_provider_time = <<EOF
time = {
source = "hashicorp/time"
version = "0.9.1"
}
EOF
required_provider_http = <<EOF
http = {
source = "hashicorp/http"
version = "3.2.1"
}
EOF
required_provider_local = <<EOF
local = {
source = "hashicorp/local"
version = "2.4.0"
}
EOF
required_provider_azapi = <<EOF
azapi = {
source = "Azure/azapi"
version = "1.5.0"
}
EOF
}