Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
terraform-aws-route53
Project
Project
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
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Terraform Modules
terraform-aws-route53
Commits
be1d1f8c
Unverified
Commit
be1d1f8c
authored
Aug 27, 2021
by
chas0amx
Committed by
GitHub
Aug 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Allow zones with the same domain name (eg, public and private) (#55)
parent
ac0737b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
main.tf
examples/complete/main.tf
+3
-1
main.tf
modules/zones/main.tf
+1
-1
No files found.
examples/complete/main.tf
View file @
be1d1f8c
...
@@ -21,7 +21,9 @@ module "zones" {
...
@@ -21,7 +21,9 @@ module "zones" {
}
}
"private-vpc.terraform-aws-modules-example.com"
=
{
"private-vpc.terraform-aws-modules-example.com"
=
{
comment
=
"private-vpc.terraform-aws-modules-example.com"
# in case than private and public zones with the same domain name
domain_name
=
"terraform-aws-modules-example.com"
comment
=
"private-vpc.terraform-aws-modules-example.com"
vpc
=
[
vpc
=
[
{
{
vpc_id
=
module
.
vpc
.
vpc_id
vpc_id
=
module
.
vpc
.
vpc_id
...
...
modules/zones/main.tf
View file @
be1d1f8c
resource
"aws_route53_zone"
"this"
{
resource
"aws_route53_zone"
"this"
{
for_each
=
var
.
create
?
var
.
zones
:
tomap
(
{}
)
for_each
=
var
.
create
?
var
.
zones
:
tomap
(
{}
)
name
=
each
.
key
name
=
lookup
(
each
.
value
,
"domain_name"
,
each
.
key
)
comment
=
lookup
(
each
.
value
,
"comment"
,
null
)
comment
=
lookup
(
each
.
value
,
"comment"
,
null
)
force_destroy
=
lookup
(
each
.
value
,
"force_destroy"
,
false
)
force_destroy
=
lookup
(
each
.
value
,
"force_destroy"
,
false
)
...
...
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