-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add back in information about creating resources in apply
#12459
Comments
Double-check my info here, but:
Here's a first draft of the content. Feedback welcome.
|
@thoward to look into this and determine what's accurate vs what we've published. |
For my use case described above, the length of the list must truly be unknown. If you're creating an AWSX VPC, and you already know you will have 3 AZs, you can just do something like: const vpc = new awsx.ec2.Vpc("my-vpc");
const subnetId1 = vpc.publicSubnetIds.apply(ids => id[0]);
const subnetId2 = vpc.publicSubnetIds.apply(ids => id[1]);
const subnetId3 = vpc.publicSubnetIds.apply(ids => id[2]);
[subnetId1, subnetId2, subnetId3].forEach(id => {
// add some routes to a routing table, etc
}); This would obviate the need to create resources in an |
Problem description
We used to include a note that when you created resources in an
apply()
there resource outputs were unknown so there may be side-effects:(from https://web.archive.org/web/20240127231146/https://www.pulumi.com/docs/concepts/inputs-outputs/)
It seems to have gone missing
The text was updated successfully, but these errors were encountered: