forked from okta/terraform-provider-okta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser_groups_updated.tf
43 lines (36 loc) · 1008 Bytes
/
user_groups_updated.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
resource "okta_group" "group" {
name = "testAcc_replace_with_uuid"
}
resource "okta_group" "group1" {
name = "testAcc_replace_with_uuid_1"
}
resource "okta_group" "group2" {
name = "testAcc_replace_with_uuid_2"
}
data "okta_group" "all" {
name = "Everyone"
}
resource "okta_user" "user" {
admin_roles = ["APP_ADMIN", "USER_ADMIN"]
first_name = "TestAcc"
last_name = "blah"
login = "testAcc-replace_with_uuid@example.com"
email = "testAcc-replace_with_uuid@example.com"
status = "ACTIVE"
}
resource "okta_user" "user1" {
first_name = "TestAcc1"
last_name = "blah"
login = "testAcc-1-replace_with_uuid@example.com"
email = "testAcc-1-replace_with_uuid@example.com"
status = "ACTIVE"
}
resource "okta_app_saml" "test" {
preconfigured_app = "amazon_aws"
label = "testAcc_replace_with_uuid"
groups = [data.okta_group.all.id]
users {
id = okta_user.user1.id
username = okta_user.user1.email
}
}