Skip to content

Commit

Permalink
fixes dns record name with custom db names
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronwalker committed Aug 16, 2023
1 parent 290fe6f commit c7ae500
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aurora-mysql.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
Route53_RecordSet(:DBClusterReaderRecord) {
Condition(:EnableReader)
HostedZoneName FnJoin('', [ Ref(:EnvironmentName), '.', Ref(:DnsDomain), '.' ])
Name FnJoin('', [ "#{external_parameters[:hostname_read_endpoint]}", '.', Ref(:EnvironmentName), '.', Ref(:DnsDomain), '.' ])
Name FnJoin('', [ external_parameters[:hostname_read_endpoint], '.', Ref(:EnvironmentName), '.', Ref(:DnsDomain), '.' ])
Type 'CNAME'
TTL '60'
ResourceRecords [ FnGetAtt('DBCluster','ReadEndpoint.Address') ]
Expand All @@ -143,7 +143,7 @@

Route53_RecordSet(:DBHostRecord) {
HostedZoneName FnJoin('', [ Ref(:EnvironmentName), '.', Ref(:DnsDomain), '.' ])
Name FnJoin('', [ "#{external_parameters[:hostname]}", '.', Ref(:EnvironmentName), '.', Ref(:DnsDomain), '.' ])
Name FnJoin('', [ external_parameters[:hostname], '.', Ref(:EnvironmentName), '.', Ref(:DnsDomain), '.' ])
Type 'CNAME'
TTL '60'
ResourceRecords [ FnGetAtt('DBCluster','Endpoint.Address') ]
Expand Down

0 comments on commit c7ae500

Please sign in to comment.