forked from okta/terraform-provider-okta
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic_updated.tf
More file actions
28 lines (25 loc) · 799 Bytes
/
Copy pathbasic_updated.tf
File metadata and controls
28 lines (25 loc) · 799 Bytes
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
data "okta_group" "all" {
name = "Everyone"
}
resource "okta_user" "test" {
first_name = "TestAcc"
last_name = "Smith"
email = "testAcc_replace_with_uuid@gmail.com"
login = "testAcc_replace_with_uuid@gmail.com"
}
resource "okta_policy_signon" "test" {
name = "testAcc_replace_with_uuid"
status = "ACTIVE"
description = "Terraform Acceptance Test SignOn Policy"
groups_included = [data.okta_group.all.id]
}
resource "okta_policy_rule_signon" "test" {
policy_id = okta_policy_signon.test.id
name = "testAcc_replace_with_uuid"
status = "INACTIVE"
access = "DENY"
session_idle = 240
session_lifetime = 240
session_persistent = false
users_excluded = [okta_user.test.id]
}