Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Cloudflare Zone 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 Zone Module
Commits
fbc8d69c
Commit
fbc8d69c
authored
May 23, 2019
by
Mike Horwath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0.12 in the house
parent
060a6460
Pipeline
#195
failed with stage
in 22 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
8 deletions
+18
-8
README.md
README.md
+2
-0
outputs.tf
outputs.tf
+6
-5
variables.tf
variables.tf
+3
-1
versions.tf
versions.tf
+4
-0
zone.tf
zone.tf
+3
-2
No files found.
README.md
View file @
fbc8d69c
...
...
@@ -2,6 +2,8 @@
[
Terraform cloudflare_zone
](
https://www.terraform.io/docs/providers/cloudflare/r/zone.html
)
> **Requires Terraform 0.12 or higher**
## usage example
## required variables
...
...
outputs.tf
View file @
fbc8d69c
output
"id"
{
value
=
"
${
cloudflare_zone
.
dns_zone
.
*
.
id
}
"
value
=
cloudflare_zone
.
dns_zone
.*.
id
}
output
"vanity_name_servers"
{
value
=
"
${
cloudflare_zone
.
dns_zone
.
*
.
vanity_name_servers
}
"
value
=
cloudflare_zone
.
dns_zone
.*.
vanity_name_servers
}
# does not work
...
...
@@ -17,13 +17,14 @@ output "vanity_name_servers" {
# }
output
"status"
{
value
=
"
${
cloudflare_zone
.
dns_zone
.
*
.
status
}
"
value
=
cloudflare_zone
.
dns_zone
.*.
status
}
output
"type"
{
value
=
"
${
cloudflare_zone
.
dns_zone
.
*
.
type
}
"
value
=
cloudflare_zone
.
dns_zone
.*.
type
}
output
"name_servers"
{
value
=
"
${
cloudflare_zone
.
dns_zone
.
*
.
name_servers
}
"
value
=
cloudflare_zone
.
dns_zone
.*.
name_servers
}
variables.tf
View file @
fbc8d69c
variable
"zone"
{}
variable
"zone"
{
}
variable
"create_zone"
{
default
=
"false"
}
versions.tf
0 → 100644
View file @
fbc8d69c
terraform
{
required_version
=
">= 0.12"
}
zone.tf
View file @
fbc8d69c
resource
"cloudflare_zone"
"dns_zone"
{
count
=
"
${
var
.
create_zone
==
"true"
?
1
:
0
}
"
zone
=
"
${
var
.
zone
}
"
count
=
var
.
create_zone
==
"true"
?
1
:
0
zone
=
var
.
zone
}
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