Skip to content

Commit 6d3f10c

Browse files
authored
Merge pull request #78 from remerge/IT-6296
Fix missing Platform Team
2 parents a86ed6e + aef3fa7 commit 6d3f10c

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

nomad/base/main.tf

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,30 @@ resource "nomad_acl_role" "root" {
137137
}
138138
}
139139

140-
resource "nomad_acl_binding_rule" "platform" {
140+
moved {
141+
from = nomad_acl_binding_rule.platform
142+
to = nomad_acl_binding_rule.core
143+
}
144+
145+
resource "nomad_acl_binding_rule" "core" {
146+
auth_method = nomad_acl_auth_method.okta.name
147+
bind_type = "role"
148+
bind_name = nomad_acl_role.root.name
149+
selector = "\"Core Platform Team\" in list.groups"
150+
}
151+
152+
resource "nomad_acl_binding_rule" "data" {
153+
auth_method = nomad_acl_auth_method.okta.name
154+
bind_type = "role"
155+
bind_name = nomad_acl_role.root.name
156+
selector = "\"Data Platform Team\" in list.groups"
157+
}
158+
159+
resource "nomad_acl_binding_rule" "oncall" {
141160
auth_method = nomad_acl_auth_method.okta.name
142161
bind_type = "role"
143162
bind_name = nomad_acl_role.root.name
144-
selector = "\"Platform Team\" in list.groups"
163+
selector = "\"On-Call Team\" in list.groups"
145164
}
146165

147166
resource "nomad_acl_policy" "github_actions" {

okta/pam/project/variables.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ variable "groups" {
1111
default = [
1212
"owners",
1313
"On-Call Team",
14-
"Platform Team",
14+
"Core Platform Team",
15+
"Data Platform Team",
1516
]
1617
}

0 commit comments

Comments
 (0)