From 444d057f18ebbe020abac3e6ac8a7bb1e535c263 Mon Sep 17 00:00:00 2001 From: Thomas Nicollet Date: Mon, 30 Nov 2020 09:21:57 +0100 Subject: [PATCH] :fire: Removed asynchronous call on getZone --- src/route53.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/route53.ts b/src/route53.ts index 5b4bdc6..aaae80a 100644 --- a/src/route53.ts +++ b/src/route53.ts @@ -23,7 +23,7 @@ export class ReactAppAliasRecord extends pulumi.ComponentResource { constructor(appName: string, args: ReactAppAliasRecordArgs, opts: pulumi.ComponentResourceOptions) { super("nebulis:ReactAppAliasRecord", appName, {}, opts); const domainParts = utils.getDomainAndSubdomain(args.domain); - const hostedZoneId = domainParts.parentDomain.apply(name => aws.route53.getZone({ name }, { async: true })).apply(zone => zone.zoneId); + const hostedZoneId = domainParts.parentDomain.apply(name => aws.route53.getZone({ name })).apply(zone => zone.zoneId); this.record = pulumi.output( new aws.route53.Record( `${appName}-${args.domain}-aliasRecord`, @@ -94,7 +94,7 @@ export class ReactAppCertificate extends pulumi.ComponentResource { const domainParts = utils.getDomainAndSubdomain(args.domain); - const hostedZoneId = domainParts.parentDomain.apply(name => aws.route53.getZone({ name }, { async: true })).apply(zone => zone.zoneId); + const hostedZoneId = domainParts.parentDomain.apply(name => aws.route53.getZone({ name })).apply(zone => zone.zoneId); this.certificateValidationDomain = pulumi.output( new aws.route53.Record(