This message was deleted.
s
This message was deleted.
f
I am on pulumi 2.17.2.
b
are you creating resources within that `apply`/`.all` call ?
f
Yes
b
this is almost certainly why, it's generally not recommended to do this for this reason,
.apply
isn't deterministic. Can you share your use case for doing it this way?
f
Not all Pulumi resources take an Input.
I think all of this comes from the fact that I have an
awsx.ec2.Vpc
that is an Output.
So I'd need to make all my pulumi.ComponentResource take a pulumi.Output<awsx.ec2.Vpc>. That doesn't seem like the right approach.
Because of this, all my resources need to do this https://www.pulumi.com/docs/intro/concepts/programming-model/#frominput.
I’m not sure what the general solution is to this.
I have since realized that Vpc.fromExistingIds takes Inputs. Oops. One mistake at the bottom of things made me use apply is so many places wrongly. So excited to clean up this code.