Skip to content
GitLab
Explore
Sign in
Commits on Source (2)
renaming
· a9849baf
Mike Horwath
authored
Nov 10, 2018
a9849baf
blending would be good
· 5c7729a8
Mike Horwath
authored
Nov 10, 2018
5c7729a8
Show whitespace changes
Inline
Side-by-side
README.md
View file @
5c7729a8
...
...
@@ -7,3 +7,7 @@
## required variables
## optional variables
## outputs
*
`id`
- The access rule ID.
*
`zone_id`
- The DNS zone ID.
outputs.tf
0 → 100644
View file @
5c7729a8
output
"whitelist_id"
{
value
=
[
"
${
cloudflare_access_rule
.
whitelisted_ip
.
*
.
id
}
"
]
}
output
"whitelist_zone_id"
{
value
=
[
"
${
cloudflare_access_rule
.
whitelisted_ip
.
*
.
zone_id
}
"
]
}
rule.tf
0 → 100644
View file @
5c7729a8
# TBD
resource
"cloudflare_access_rule"
"whitelisted_ip"
{
count
=
"
${
length
(
var
.
whitelist_ips
)}
"
notes
=
"Whitelist IPs from Terraform"
mode
=
"whitelist"
configuration
{
target
=
"ip_range"
value
=
"
${
element
(
var
.
whitelist_ips
,
count
.
index
)}
"
}
}
rules.tf
deleted
100644 → 0
View file @
1d600c59
# TBD
variables.tf
0 → 100644
View file @
5c7729a8
variable
"notes"
{}
variable
"mode"
{}
variable
"configuration_target"
{}
variable
"configuration_value"
{}
variable
"zone"
{}
variable
"whitelist_ips"
{
type
=
"list"
}