-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
122 lines (97 loc) · 3.35 KB
/
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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
resource "github_team" "team" {
name = var.project_code_name
privacy = "closed"
}
resource "github_team" "team-admins" {
name = "${var.project_code_name}-Admins"
parent_team_id = github_team.team.id
privacy = "closed"
}
resource "github_team" "team-visitors" {
name = "${var.project_code_name}-Visitors"
parent_team_id = github_team.team.id
privacy = "closed"
}
resource "github_team" "team-testers" {
name = "${var.project_code_name}-Testers"
parent_team_id = github_team.team.id
privacy = "closed"
}
resource "github_team" "team-data-science" {
name = "${var.project_code_name}-Data-Scientists"
parent_team_id = github_team.team.id
privacy = "closed"
}
resource "github_team" "team-developers" {
name = "${var.project_code_name}-Developers"
parent_team_id = github_team.team.id
privacy = "closed"
}
resource "github_team" "team-developers-frontend" {
name = "${var.project_code_name}-Developers-FrontEnd"
parent_team_id = github_team.team-developers.id
privacy = "closed"
}
resource "github_team" "team-developers-backend" {
name = "${var.project_code_name}-Developers-BackEnd"
parent_team_id = github_team.team-developers.id
privacy = "closed"
}
resource "github_team" "team-developers-devops" {
name = "${var.project_code_name}-Developers-DevOps"
parent_team_id = github_team.team-developers.id
privacy = "closed"
}
resource "github_team" "team-developers-mobile" {
name = "${var.project_code_name}-Developers-Mobile"
parent_team_id = github_team.team-developers.id
privacy = "closed"
}
resource "github_team_membership" "admin-membership" {
count = length(var.admin_members)
team_id = github_team.team-admins.id
username = var.admin_members[count.index]
role = "member"
}
resource "github_team_membership" "visitor-membership" {
count = length(var.visiting_members)
team_id = github_team.team-visitors.id
username = var.visiting_members[count.index]
role = "member"
}
resource "github_team_membership" "tester-membership" {
count = length(var.tester_members)
team_id = github_team.team-testers.id
username = var.tester_members[count.index]
role = "member"
}
resource "github_team_membership" "data-science-membership" {
count = length(var.data_science_members)
team_id = github_team.team-data-science.id
username = var.data_science_members[count.index]
role = "member"
}
resource "github_team_membership" "frontend-membership" {
count = length(var.frontend_members)
team_id = github_team.team-developers-frontend.id
username = var.frontend_members[count.index]
role = "member"
}
resource "github_team_membership" "backend-membership" {
count = length(var.backend_members)
team_id = github_team.team-developers-backend.id
username = var.backend_members[count.index]
role = "member"
}
resource "github_team_membership" "devops-membership" {
count = length(var.devops_members)
team_id = github_team.team-developers-devops.id
username = var.devops_members[count.index]
role = "member"
}
resource "github_team_membership" "mobile-membership" {
count = length(var.mobile_members)
team_id = github_team.team-developers-mobile.id
username = var.mobile_members[count.index]
role = "member"
}