-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathaction_variables.tf
More file actions
55 lines (47 loc) · 2.04 KB
/
action_variables.tf
File metadata and controls
55 lines (47 loc) · 2.04 KB
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
resource "github_actions_environment_variable" "azure_plan_client_id" {
for_each = var.environments
repository = github_repository.alz.name
environment = github_repository_environment.alz[each.key].environment
variable_name = "AZURE_CLIENT_ID"
value = var.managed_identity_client_ids[each.key]
}
resource "github_actions_variable" "azure_subscription_id" {
repository = github_repository.alz.name
variable_name = "AZURE_SUBSCRIPTION_ID"
value = var.azure_subscription_id
}
resource "github_actions_variable" "azure_tenant_id" {
repository = github_repository.alz.name
variable_name = "AZURE_TENANT_ID"
value = var.azure_tenant_id
}
resource "github_actions_variable" "backend_azure_resource_group_name" {
count = var.create_storage_account_variables ? 1 : 0
repository = github_repository.alz.name
variable_name = "BACKEND_AZURE_RESOURCE_GROUP_NAME"
value = var.backend_azure_resource_group_name
}
resource "github_actions_variable" "backend_azure_storage_account_name" {
count = var.create_storage_account_variables ? 1 : 0
repository = github_repository.alz.name
variable_name = "BACKEND_AZURE_STORAGE_ACCOUNT_NAME"
value = var.backend_azure_storage_account_name
}
resource "github_actions_variable" "backend_azure_storage_account_container_name" {
count = var.create_storage_account_variables ? 1 : 0
repository = github_repository.alz.name
variable_name = "BACKEND_AZURE_STORAGE_ACCOUNT_CONTAINER_NAME"
value = var.backend_azure_storage_account_container_name
}
moved {
from = "github_actions_variable.backend_azure_resource_group_name"
to = "github_actions_variable.backend_azure_resource_group_name[0]"
}
moved {
from = "github_actions_variable.backend_azure_storage_account_name"
to = "github_actions_variable.backend_azure_storage_account_name[0]"
}
moved {
from = "github_actions_variable.backend_azure_storage_account_container_name"
to = "github_actions_variable.backend_azure_storage_account_container_name[0]"
}