Skip to content

Commit

Permalink
Update policy and main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
kapicic committed Dec 4, 2023
1 parent 0c24438 commit d4dbc3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ resource "abbey_grant_kit" "abbey_demo_site" {
steps = [
{
reviewers = {
one_of = ["replace-me@example.com"] # CHANGEME
one_of = ["kapicic.ste1@gmail.com"] # CHANGEME
}
}
]
}

policies = [
{ bundle = "github://replace-me-with-organization/replace-me-with-repo/policies" } # CHANGEME
{ bundle = "github://kapicic/abbeytest/policies" } # CHANGEME
]

output = {
# Replace with your own path pointing to where you want your access changes to manifest.
# Path is an RFC 3986 URI, such as `github://{organization}/{repo}/path/to/file.tf`.
location = "github://replace-me-with-organization/replace-me-with-repo/access.tf" # CHANGEME
location = "github://kapicic/abbeytest/access.tf" # CHANGEME
append = <<-EOT
resource "abbey_demo" "grant_read_write_access" {
permission = "read_write"
Expand Down
4 changes: 2 additions & 2 deletions policies/common/common.rego
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package common
import data.abbey.functions

allow[msg] {
functions.expire_after("0m")
msg := "granting access for 0 minutes"
functions.expire_after("5m")
msg := "granting access for 5 minutes"
}

0 comments on commit d4dbc3c

Please sign in to comment.