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
80849a4c
Unverified
Commit
80849a4c
authored
Apr 21, 2021
by
sfstar
Committed by
GitHub
Apr 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Add ability for users to create aliases in the same zone (#35)
parent
43250f1a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
main.tf
examples/complete/main.tf
+8
-0
main.tf
modules/records/main.tf
+1
-1
No files found.
examples/complete/main.tf
View file @
80849a4c
...
@@ -116,6 +116,14 @@ module "records" {
...
@@ -116,6 +116,14 @@ module "records" {
failover_routing_policy
=
{
failover_routing_policy
=
{
type
=
"SECONDARY"
type
=
"SECONDARY"
}
}
},
{
name
=
"alternative-resource-name"
type
=
"A"
set_identifier
=
"alternative-resource-name"
alias
=
{
name
=
module
.
s3_bucket
.
this_s3_bucket_website_domain
}
}
}
]
]
...
...
modules/records/main.tf
View file @
80849a4c
...
@@ -28,7 +28,7 @@ resource "aws_route53_record" "this" {
...
@@ -28,7 +28,7 @@ resource "aws_route53_record" "this" {
content
{
content
{
name
=
each
.
value
.
alias
.
name
name
=
each
.
value
.
alias
.
name
zone_id
=
each
.
value
.
alias
.
zone_id
zone_id
=
try
(
each
.
value
.
alias
.
zone_id
,
data
.
aws_route53_zone
.
this
[
0
]
.
zone_id
)
evaluate_target_health
=
lookup
(
each
.
value
.
alias
,
"evaluate_target_health"
,
false
)
evaluate_target_health
=
lookup
(
each
.
value
.
alias
,
"evaluate_target_health"
,
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