Skip to content

Commit

Permalink
🔥 Removed asynchronous call on getZone
Browse files Browse the repository at this point in the history
  • Loading branch information
nwmqpa committed Nov 30, 2020
1 parent b5cd296 commit 444d057
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/route53.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 444d057

Please sign in to comment.