-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathworkspace_aws.tf
62 lines (60 loc) · 1.74 KB
/
workspace_aws.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
locals {
workspace_aws = merge(
{
for name, network in local.network : "${name}-aws-network" => {
description = "Automation for AWS network resources."
execution_mode = "remote"
project_id = module.project["fem-eci-project"].id
vcs_repo_identifier = "${var.github_organization_name}/fem-eci-terraform-aws-network"
variables = [
{
category = "terraform"
hcl = true
key = "azs"
value = jsonencode(network.azs)
},
{
category = "terraform"
key = "cidr"
value = network.cidr
},
{
category = "terraform"
key = "name"
value = name
},
]
}
},
{
for name, cluster in local.cluster : "${name}-aws-cluster-${cluster.environment}" => {
description = "Automation for AWS cluster resources."
execution_mode = "remote"
project_id = module.project["fem-eci-project"].id
vcs_repo_identifier = "${var.github_organization_name}/fem-eci-terraform-aws-cluster"
variables = [
{
category = "terraform"
key = "domain"
value = cluster.domain
},
{
category = "terraform"
key = "environment"
value = cluster.environment
},
{
category = "terraform"
key = "name"
value = name
},
{
category = "terraform"
key = "vpc_name"
value = cluster.vpc_name
},
]
}
},
)
}