Skip to content

Commit

Permalink
allows overriding the dns hosted zone naming
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronwalker committed Aug 3, 2022
1 parent dc08440 commit 3f61210
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions dnszone.config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dns_domain:
Fn::Join:
- '.'
- - Ref: EnvironmentName
- Fn::Sub: ${DnsDomain}.
3 changes: 2 additions & 1 deletion vpc-v2.cfhighlander.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@

end

Component template: 'route53-zone@1.0.3', name: 'dnszone', render: Inline do
Component template: 'route53-zone@1.4.0', name: 'dnszone', render: Inline do
parameter name: 'CreateZone', value: 'true'
parameter name: 'RootDomainName', value: FnSub('${DnsDomain}.')
parameter name: 'DnsDomain', value: Ref(:DnsDomain)
end if manage_ns_records && create_hosted_zone

end

0 comments on commit 3f61210

Please sign in to comment.