Skip to content

Commit c682eb5

Browse files
authored
Merge pull request #187 from DataDog/fix/shared-cdk
fix: update hosted zone lookup
2 parents 374d519 + 6e3bee6 commit c682eb5

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)