-
Notifications
You must be signed in to change notification settings - Fork 1
/
locals.tf
36 lines (33 loc) · 1.48 KB
/
locals.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
locals {
repos = {
aft-framework = {
repo_name = "aft-framework"
template_name = "template-aft-framework"
},
aft-account-requests = {
repo_name = "aft-account-requests"
template_name = "template-aft-account-requests"
},
aft-account-customizations = {
repo_name = "aft-account-customizations"
template_name = "template-aft-account-customizations"
},
aft-account-provisioning-customizations = {
repo_name = "aft-account-provisioning-customizations"
template_name = "template-aft-account-provisioning-customizations"
},
aft-global-customizations = {
repo_name = "aft-global-customizations"
template_name = "template-aft-global-customizations"
}
}
templates_organization = "robbycuenot"
tfc_workspace_slug_split = split("/", var.TFC_WORKSPACE_SLUG)
tfc_current_organization_name = local.tfc_workspace_slug_split[0]
tfc_current_workspace_name = local.tfc_workspace_slug_split[1]
tfc_aft_organization_name = var.tfc_aft_organization_name != "" ? var.tfc_aft_organization_name : "${local.tfc_current_organization_name}-aft"
tfc_workloads_organization_name = var.tfc_workloads_organization_name != "" ? var.tfc_workloads_organization_name : "${local.tfc_current_organization_name}-workloads"
github_identifier = data.tfe_workspace.current_workspace.vcs_repo["0"].identifier
github_identifier_split = split("/", local.github_identifier)
github_owner = local.github_identifier_split[0]
}