-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
30 lines (27 loc) · 908 Bytes
/
main.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
module "project" {
for_each = local.project
source = "ALT-F4-LLC/project/tfe"
version = "0.5.0"
description = each.value.description
name = each.key
organization_name = var.organization_name
}
module "workspace" {
for_each = local.workspace
source = "ALT-F4-LLC/workspace/tfe"
version = "0.8.0"
description = each.value.description
execution_mode = each.value.execution_mode
name = each.key
organization_name = var.organization_name
project_id = each.value.project_id
variables = try(each.value.variables, [])
vcs_repo = {
github_app_installation_id = data.tfe_github_app_installation.this.id
identifier = each.value.vcs_repo_identifier
}
}
moved {
from = module.workspace["eci-workspace"]
to = module.workspace["eci-tfe"]
}