-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
43 lines (36 loc) · 888 Bytes
/
main.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
locals {
account_name = ""
repo_name = ""
project_path = "github://${local.account_name}/${local.repo_name}"
policies_path = "${local.project_path}/policies"
admin_email = ""
}
resource "tabular_role" "pii_role" {
name = "PII Role"
}
resource "abbey_grant_kit" "tabular_pii_role_membership" {
name = "tabular_pii_role_membership"
description = "Tabular PII Role Membership"
workflow = {
steps = [
{
reviewers = {
one_of = ["[email protected]"]
}
}
]
}
policies = [
{ bundle = local.policies_path }
]
output = {
location = "${local.project_path}/access.tf"
append = <<-EOT
resource "tabular_role_membership" "pii_members" {
role_name = tabular_role.pii_role.name
admin_members = [local.admin_email]
members = ["{{ .user.email }}"]
}
EOT
}
}