@jaypie/constructs 1.1.62-rc.1 → 1.1.62-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -1744,14 +1744,20 @@ class JaypieDistribution extends Construct {
1744
1744
  this.distributionDomainName = this.distribution.distributionDomainName;
1745
1745
  this.distributionId = this.distribution.distributionId;
1746
1746
  this.domainName = this.distribution.domainName;
1747
- // Create DNS record if we have host and zone
1747
+ // Create DNS records if we have host and zone
1748
1748
  if (host && hostedZone) {
1749
- const record = new route53.ARecord(this, "AliasRecord", {
1749
+ const aRecord = new route53.ARecord(this, "AliasRecord", {
1750
1750
  recordName: host,
1751
1751
  target: route53.RecordTarget.fromAlias(new route53Targets.CloudFrontTarget(this.distribution)),
1752
1752
  zone: hostedZone,
1753
1753
  });
1754
- Tags.of(record).add(CDK$2.TAG.ROLE, CDK$2.ROLE.NETWORKING);
1754
+ Tags.of(aRecord).add(CDK$2.TAG.ROLE, CDK$2.ROLE.NETWORKING);
1755
+ const aaaaRecord = new route53.AaaaRecord(this, "AaaaAliasRecord", {
1756
+ recordName: host,
1757
+ target: route53.RecordTarget.fromAlias(new route53Targets.CloudFrontTarget(this.distribution)),
1758
+ zone: hostedZone,
1759
+ });
1760
+ Tags.of(aaaaRecord).add(CDK$2.TAG.ROLE, CDK$2.ROLE.NETWORKING);
1755
1761
  }
1756
1762
  }
1757
1763
  // Type guards for handler types