File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -277,23 +277,25 @@ export class Api {
277277
278278 merge ( resources , {
279279 [ domainRoute53Record ] : {
280- Type : 'AWS::Route53::RecordSet ' ,
280+ Type : 'AWS::Route53::RecordSetGroup ' ,
281281 DeletionPolicy : domain . retain ? 'Retain' : 'Delete' ,
282282 Properties : {
283283 ...( domain . hostedZoneId
284284 ? { HostedZoneId : domain . hostedZoneId }
285285 : { HostedZoneName : hostedZoneName } ) ,
286- Name : domain . name ,
287- Type : 'A' ,
288- AliasTarget : {
289- HostedZoneId : {
290- 'Fn::GetAtt' : [ domainNameLogicalId , 'HostedZoneId' ] ,
291- } ,
292- DNSName : {
293- 'Fn::GetAtt' : [ domainNameLogicalId , 'AppSyncDomainName' ] ,
294- } ,
295- EvaluateTargetHealth : false ,
296- } ,
286+ RecordSets : [ 'A' , 'AAAA' ] . map ( Type => ( {
287+ Name : domain . name ,
288+ Type,
289+ AliasTarget : {
290+ HostedZoneId : {
291+ 'Fn::GetAtt' : [ domainNameLogicalId , 'HostedZoneId' ] ,
292+ } ,
293+ DNSName : {
294+ 'Fn::GetAtt' : [ domainNameLogicalId , 'AppSyncDomainName' ] ,
295+ } ,
296+ EvaluateTargetHealth : false ,
297+ }
298+ } ) )
297299 } ,
298300 } ,
299301 } ) ;
You can’t perform that action at this time.
0 commit comments