Skip to content

Commit

Permalink
Merge pull request #26 from theonestack/hotflix/inline-support
Browse files Browse the repository at this point in the history
switch to FnJoin for inline support
  • Loading branch information
aaronwalker authored Jul 5, 2023
2 parents 61dec4f + c6ef9fa commit 290fe6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aurora-mysql.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,17 @@

Route53_RecordSet(:DBClusterReaderRecord) {
Condition(:EnableReader)
HostedZoneName FnJoin('', [ "#{external_parameters[:dns_format]}", '.' ])
Name FnJoin('', [ "#{external_parameters[:hostname_read_endpoint]}.#{external_parameters[:dns_format]}", '.' ])
HostedZoneName FnJoin('', [ Ref(:EnvironmentName), '.', Ref(:DnsDomain), '.' ])
Name FnJoin('', [ "#{external_parameters[:hostname_read_endpoint]}", '.', Ref(:EnvironmentName), '.', Ref(:DnsDomain), '.' ])
Type 'CNAME'
TTL '60'
ResourceRecords [ FnGetAtt('DBCluster','ReadEndpoint.Address') ]
}
end

Route53_RecordSet(:DBHostRecord) {
HostedZoneName FnJoin('', [ "#{external_parameters[:dns_format]}", '.' ])
Name FnJoin('', [ "#{external_parameters[:hostname]}.#{external_parameters[:dns_format]}", '.' ])
HostedZoneName FnJoin('', [ 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 290fe6f

Please sign in to comment.