late-airplane-27955
11/09/2024, 11:16 AMlate-airplane-27955
11/09/2024, 11:35 AMlate-airplane-27955
11/09/2024, 11:36 AMbillions-egg-86119
11/09/2024, 1:03 PMlate-airplane-27955
11/09/2024, 1:05 PMbillions-egg-86119
11/09/2024, 1:39 PMlimited-potato-48067
11/09/2024, 6:20 PMcold-hydrogen-54783
11/13/2024, 2:49 AMTransform an array of ec2 Subnet objects, taking the ID of each object, and returning a StringArrayOutput to provide to an ec2 SecurityGroup subnet ids field
Pulumi AI would usually provide a reasonable answer that I can adapt as I need.
---
I feel like I have got a good grasp on how to use Inputs and Outputs now, and this has resulted in me writing a number of utility functions that help quite a bit. For example, a function to convert an array of Pulumi objects into a Pulumi ID StringArrayOutput (perhaps to pass a slice of ec2 subnet IDs to an ec2 security group), or creating a generic sort function that assists when I convert a map into a Pulumi output array.billions-egg-86119
11/13/2024, 7:12 PMlate-airplane-27955
11/14/2024, 8:07 AMOutput.Tuple
block, but if one of my inputs are a secret, then that entire block will be marked as "secret" and the diff will be obfuscated.
I feel like the docs don't at all mention the different behavior of Apply
depending on whether or not you're inside our outside a resource constructor, and the limitations in the readability of the diff.
I'm very much looking for feedback - how would you construct code where a 5-level deep values dict might need an extra dict block if an input is set?late-airplane-27955
11/14/2024, 8:36 AMOutput.Tuple
statement. Then maybe that's the way do to this.late-airplane-27955
11/14/2024, 8:43 AM