Skip to content

Commit

Permalink
terraform fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
m4xmorris committed Nov 30, 2023
1 parent bb8f4f7 commit e6bb2ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ resource "cloudflare_access_policy" "email_policy" {
name = "${var.name} Email Policy"
precedence = "2"
decision = "allow"
include {email = var.allowed_emails}
include { email = var.allowed_emails }
count = length(var.allowed_emails) > 0 && var.enable_managed_policy ? 1 : 0
}
6 changes: 3 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ variable "cloudflare_zone_id" {
}

variable "enable_managed_policy" {
type = bool
type = bool
description = "Enable/Disable the managed GitHub and email policies (if disabled ensure you create your own policies!)"
default = true
default = true
}

variable "github_idp" {
Expand All @@ -89,5 +89,5 @@ variable "github_teams" {
variable "allowed_emails" {
type = list(string)
description = "List of email addresses permitted to login via OTP"
default = []
default = []
}

0 comments on commit e6bb2ae

Please sign in to comment.