Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Cloudflare Access Rule Module
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Terraform based repositories
Cloudflare Access Rule Module
Commits
5c7729a8
Commit
5c7729a8
authored
Nov 10, 2018
by
Mike Horwath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blending would be good
parent
a9849baf
Pipeline
#43
canceled with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
0 deletions
+31
-0
README.md
README.md
+4
-0
outputs.tf
outputs.tf
+7
-0
rule.tf
rule.tf
+11
-0
variables.tf
variables.tf
+9
-0
No files found.
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
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
)
}
"
}
}
variables.tf
0 → 100644
View file @
5c7729a8
variable
"notes"
{}
variable
"mode"
{}
variable
"configuration_target"
{}
variable
"configuration_value"
{}
variable
"zone"
{}
variable
"whitelist_ips"
{
type
=
"list"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment