-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocals.tf
76 lines (68 loc) · 1.58 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
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
locals {
domains = {
"dev": "domain-dev.io",
"staging": "domain.io",
"prod": "domain.io"
}
accounts = {
users = {
name = "users",
owner = "users@domain.io"
},
dev = {
name = "dev",
owner = "dev@domain.io"
},
staging = {
name = "staging",
owner = "stage@domain.io"
},
production = {
name = "production",
owner = "prod@domain.io"
}
}
# Custom accounts
dev_accounts = {
team1 = {
name = "team1",
subdomain = "team1",
owner = "aws-dev+team1@domain.io"
}
}
ous = {
"users" = aws_organizations_organizational_unit.users
"sandbox" = aws_organizations_organizational_unit.sandbox
"workloads" = aws_organizations_organizational_unit.workloads
}
# Repository that has access to AWS
full_repository_name = "github_org/repository"
github_organisations = [
"https://github.com/github_org"
]
dns_records = {
"acm_validation" : { "type" = "CNAME", "ttl" = 60, "name" = "_fdsfsdfsdfd", "records" = ["_fsdfsdfsdfd.sfsfsdfsdf.acm-validations.aws."] },
}
users = {
"johndoe" = {
name = "john.doe",
pgp_key = "keybase:johndoe"
has_console_access = true
groups = [
module.self-managing-group-user.name,
module.super_admin_group.group_name,
module.team1_group.group_name,
]
}
}
roles = {
"admin": {
"role_name": "Administrator",
"policy_name": "Administrator"
},
"readonly": {
"role_name": "Readonly",
"policy_name": "ReadOnly"
}
}
}