Skip to content

Commit

Permalink
feat: dropping the check on the policies, as theres a use case to hav…
Browse files Browse the repository at this point in the history
…e no permissions (#26)
  • Loading branch information
gambol99 authored Jul 3, 2024
1 parent c08e7a0 commit 8cc0728
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions modules/role/checks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,6 @@ check "protected_by_config" {
}
}

check "policy_config" {
assert {
condition = !(length(var.read_only_policy_arns) == 0 && length(var.read_only_inline_policies) == 0)
error_message = "At lest one of 'read_only_policy_arns' or 'read_only_inline_policies' must be specified"
}

assert {
condition = !(length(var.read_write_policy_arns) == 0 && length(var.read_write_inline_policies) == 0)
error_message = "At least one of 'read_write_policy_arns' or 'read_write_inline_policies' must be specified"
}
}

check "permission_boundary" {
# Either permission_boundary or permission_boundary_arn must be specified
assert {
Expand Down

0 comments on commit 8cc0728

Please sign in to comment.