Skip to content

Commit 6e3bee6

Browse files
committed
fix: update hosted zone lookup
1 parent 374d519 commit 6e3bee6

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

shared/infra/aws/lib/dns.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ export class Dns extends Construct {
2020
const certificateArn = process.env.CERTIFICATE_ARN!;
2121

2222
if (hostedZoneId && certificateArn) {
23-
this.hostedZone = PublicHostedZone.fromHostedZoneId(
23+
this.hostedZone = PublicHostedZone.fromHostedZoneAttributes(
2424
this,
2525
"ImportedHostedZone",
26-
hostedZoneId,
26+
{
27+
hostedZoneId: hostedZoneId,
28+
zoneName: "stickerlandia.dev",
29+
},
2730
) as PublicHostedZone;
2831

2932
this.certificate = Certificate.fromCertificateArn(

0 commit comments

Comments
 (0)