https://pulumi.com logo
#dotnet
Title
# dotnet
c

colossal-vr-62639

02/25/2022, 1:50 PM
Is there a way to perform the following?
Copy code
var inputs = new Pulumi.InputList<Pulumi.Aws.Ec2.Subnet>();
Pulumi.Output<string[]> subnetIds = //project inputs
t

tall-librarian-49374

02/25/2022, 2:08 PM
Should be doable with an
Apply
This seems to compile
Copy code
Pulumi.Output<ImmutableArray<string>> subnetIds
  = inputs.Apply(ins => Output.All(ins.Select(s => s.Id)));
c

colossal-vr-62639

02/25/2022, 2:24 PM
Ah! That's it, thanks @tall-librarian-49374
6 Views