File tree Expand file tree Collapse file tree 1 file changed +68
-0
lines changed
examples/enterprise_organizations_groups Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ resource "castai_enterprise_group" "group1" {
2+ enterprise_id = " 3e81b0c1-ea70-4513-8c11-60260fa04fba"
3+
4+ name = " Enterprise Group 1"
5+ description = " A description of the first group."
6+ organization_id = " 3e81b0c1-ea70-4513-8c11-60260fa04fba"
7+
8+ members {
9+ member {
10+ kind = " user"
11+ id = " c371d6a4-b6d3-4052-8742-1119013392b9"
12+ }
13+ }
14+
15+ role_bindings {
16+ role_binding {
17+ name = " Enterprise Group 1 - Viewer"
18+ role_id = " d2ff8433-af9a-4a39-8900-6f6b96e43eb6"
19+ scopes {
20+ scope {
21+ organization = " 3e81b0c1-ea70-4513-8c11-60260fa04fba"
22+ }
23+ }
24+ }
25+
26+ role_binding {
27+ name = " Enterprise Group 1 - Owner"
28+ role_id = " 0145fead-6c09-41cb-a262-cfaaab392971"
29+ scopes {
30+ scope {
31+ organization = " 3e81b0c1-ea70-4513-8c11-60260fa04fba"
32+ }
33+ }
34+ }
35+ }
36+ }
37+
38+ resource "castai_enterprise_group" "group2" {
39+ enterprise_id = " 3e81b0c1-ea70-4513-8c11-60260fa04fba"
40+
41+ name = " Enterprise Group 2"
42+ description = " A description of the second group"
43+ organization_id = " d83b788d-bc9d-4bfa-947e-8d299f3d5852"
44+
45+ members {
46+ member {
47+ kind = " user"
48+ id = " c371d6a4-b6d3-4052-8742-1119013392b9"
49+ }
50+
51+ member {
52+ kind = " service_account"
53+ id = " e498f109-eb63-43d1-94e5-6e6d2232ffab"
54+ }
55+ }
56+
57+ role_bindings {
58+ role_binding {
59+ name = " Enterprise Group 2 - Member"
60+ role_id = " 8c60bd8e-21de-402a-969f-add07fd22c1b"
61+ scopes {
62+ scope {
63+ organization = " d83b788d-bc9d-4bfa-947e-8d299f3d5852"
64+ }
65+ }
66+ }
67+ }
68+ }
You can’t perform that action at this time.
0 commit comments