-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.hcl
44 lines (38 loc) · 1.29 KB
/
common.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
locals {
default_region = "eu-west-1"
state_region = "eu-west-1"
accounts = jsondecode(file("_private/accounts.json")).accounts
account_ids = {
for key, account_info in local.accounts : key => account_info.id
if account_info.id != null && account_info.id != ""
}
management_account = {
for name, account_info in local.accounts : name => account_info
if account_info.type == "management"
}
governance_member_accounts = {
for name, account_info in local.accounts : name => account_info
if account_info.type == "governance"
}
workload_member_accounts = {
for name, account_info in local.accounts : name => account_info
if account_info.type == "workload"
}
sandbox_member_accounts = {
for name, account_info in local.accounts : name => account_info
if account_info.type == "sandbox"
}
repository = "rsturla/infrastructure"
org_cloudtrail_arn = "arn:aws:cloudtrail:eu-west-1:${local.account_ids["management"]}:trail/org-trail"
org_cloudtrail_bucket = "cloudtrail-logarchive-euwest1-rsturla"
mgmt_vpc_cidrs = {}
app_vpc_cidrs = {}
sandbox_vpc_cidrs = {}
org_id = "o-8h0fvztaki"
org_units = {
root = "r-6hmd"
governance = "ou-6hmd-c4ut55g8"
sandbox = "ou-6hmd-68z95dnm"
workload = "ou-6hmd-ubrh8ojk"
}
}