Skip to content

Commit

Permalink
Removes duplicate condition on check for 'null' value in 'policy = va…
Browse files Browse the repository at this point in the history
…r.aws_service_control_policies.allowed_regions'

Signed-off-by: Stefan Wessels Beljaars <[email protected]>
  • Loading branch information
stefanwb committed Jan 4, 2024
1 parent d9d6b66 commit 6f37e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion organizations_policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ locals {
enabled_root_policies = {
allowed_regions = {
enable = var.aws_service_control_policies.allowed_regions != null ? true : false
policy = var.aws_service_control_policies.allowed_regions != null != null ? templatefile("${path.module}/files/organizations/allowed_regions.json.tpl", {
policy = var.aws_service_control_policies.allowed_regions != null ? templatefile("${path.module}/files/organizations/allowed_regions.json.tpl", {
allowed = var.aws_service_control_policies.allowed_regions != null ? var.aws_service_control_policies.allowed_regions : []
exceptions = var.aws_service_control_policies.principal_exceptions != null ? var.aws_service_control_policies.principal_exceptions : []
}) : null
Expand Down

0 comments on commit 6f37e70

Please sign in to comment.