https://pulumi.com
Join Slack
This message was deleted.
s

Slackbot

almost 5 years ago
This message was deleted.
s
l
a
  • 3
  • 3
  • 103
This message was deleted.
s

Slackbot

over 5 years ago
This message was deleted.
s
p
+2
  • 4
  • 9
  • 103
This message was deleted.
s

Slackbot

over 5 years ago
This message was deleted.
s
b
o
  • 3
  • 2
  • 103
hey team, what's the right way to make sure export waits on all values in the array? currently i'm g...
n

Nikhil Gupta

over 1 year ago
hey team, what's the right way to make sure export waits on all values in the array? currently i'm getting 4 values in
urls.public
whereas I would expect 6.
const records: pulumi.Output<cloudflare.Record>[] = [];
for (const service of ["ga", "hr", "wp", "api"]) {
  records.push(
    pulumi.output(
      new cloudflare.Record(
        `${service}-dns-record`,
        {
          zoneId: process.env.CLOUDFLARE_ZONE_ID!,
          type: "CNAME",
          name: pulumi.interpolate`${service}-${suffix}`,
          value: traefikService.status.loadBalancer.ingress[0].hostname,
        },
        { provider }
      )
    )
  );
}

sipNodes.apply((nodes) => {
  nodes.forEach((node, index) => {
    records.push(
      pulumi.output(
        new cloudflare.Record(
          `sip-dns-record-${index}`,
          {
            zoneId: process.env.CLOUDFLARE_ZONE_ID!,
            type: "A",
            name: pulumi.interpolate`sip-${suffix}`,
            value: node.publicIp,
          },
          { provider }
        )
      )
    );
  });
});

export const urls = pulumi.all([records]).apply(([records]) => {
  return {
    lb: traefikService.status.loadBalancer.ingress[0].hostname,
    public: records.map((r) => r.hostname),
  };
});
n
t
  • 2
  • 10
  • 102
This message was deleted.
s

Slackbot

over 3 years ago
This message was deleted.
s
b
+2
  • 4
  • 11
  • 102
This message was deleted.
s

Slackbot

over 2 years ago
This message was deleted.
s
k
+3
  • 5
  • 5
  • 102
This message was deleted.
s

Slackbot

almost 5 years ago
This message was deleted.
s
m
+2
  • 4
  • 5
  • 102
This message was deleted.
s

Slackbot

almost 5 years ago
This message was deleted.
s
q
+2
  • 4
  • 5
  • 102
This message was deleted.
s

Slackbot

about 6 years ago
This message was deleted.
s
p
+3
  • 5
  • 27
  • 103
This message was deleted.
s

Slackbot

over 2 years ago
This message was deleted.
s
f
r
  • 3
  • 7
  • 101
Previous464748Next

Pulumi Community

No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.

Powered by