generated from fergusmacd/template-repo-terraform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy-org-users.tf
52 lines (50 loc) · 1.51 KB
/
my-org-users.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
locals {
users = {
user_one = {
first_name : "User",
last_name : "One"
}
user_two = {
first_name : "User",
last_name : "Two"
}
user_three = {
first_name : "User",
last_name : "Three"
}
}
}
resource "okta_user" "users" {
for_each = local.users
first_name = each.value.first_name
last_name = each.value.last_name
login = "${each.value.last_name}[email protected]"
email = "${each.value.last_name}[email protected]"
city = "New York"
cost_center = "10"
country_code = "US"
department = "IT"
display_name = "Dr. ${each.value.last_name} John Smith"
division = "Acquisitions"
employee_number = "111111"
honorific_prefix = "Dr."
honorific_suffix = "Jr."
locale = "en_US"
manager = "Jimbo"
manager_id = "222222"
middle_name = "John"
mobile_phone = "1112223333"
nick_name = "Johnny"
organization = "Testing Inc."
postal_address = "1234 Testing St."
preferred_language = "en-us"
primary_phone = "4445556666"
profile_url = "http://www.example.com/profile"
second_email = "${each.value.last_name}[email protected]"
state = "NY"
street_address = "5678 Testing Ave."
timezone = "America/New_York"
title = "Director"
user_type = "Employee"
zip_code = "11111"
}