From 6e3bee60f95b1589d94e88c4498e410a1ce60b3d Mon Sep 17 00:00:00 2001 From: "james.eastham" Date: Tue, 3 Feb 2026 16:25:32 +0000 Subject: [PATCH] fix: update hosted zone lookup --- shared/infra/aws/lib/dns.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/shared/infra/aws/lib/dns.ts b/shared/infra/aws/lib/dns.ts index 5b335df3..f3b4039b 100644 --- a/shared/infra/aws/lib/dns.ts +++ b/shared/infra/aws/lib/dns.ts @@ -20,10 +20,13 @@ export class Dns extends Construct { const certificateArn = process.env.CERTIFICATE_ARN!; if (hostedZoneId && certificateArn) { - this.hostedZone = PublicHostedZone.fromHostedZoneId( + this.hostedZone = PublicHostedZone.fromHostedZoneAttributes( this, "ImportedHostedZone", - hostedZoneId, + { + hostedZoneId: hostedZoneId, + zoneName: "stickerlandia.dev", + }, ) as PublicHostedZone; this.certificate = Certificate.fromCertificateArn(