sparse-intern-71089
10/14/2020, 8:14 PMfresh-summer-65887
10/14/2020, 8:17 PMtall-librarian-49374
10/14/2020, 9:42 PMOutput<ImmutableDictionary<string, string>>
and you have to make some mind-bending output conversions to achieve this, I’m afraidtall-librarian-49374
10/14/2020, 9:51 PMvar userPasswords = new List<Output<KeyValuePair<string, string>>>();
foreach (var username in users)
{
//...
userPasswords.Add(userLoginProfile.EncryptedPassword.Apply(p => new KeyValuePair<string, string>(username, p)));
}
UserPasswords = Output.All(userPasswords)
.Apply(ps => ps.ToImmutableDictionary());
}
[Output("userPasswords")]
public Output<ImmutableDictionary<string, string>> UserPasswords { get; set; }
fresh-summer-65887
10/15/2020, 6:32 AMApply
there somewhere but I just couldn't see how to connect the dots. It is a little mind bending and Output.All()
is new to me. Before I posted this I did thoroughly check the docs and I cloned various repos to splunk code.... I might assert there is a gap in docs / samples around all this ( https://www.pulumi.com/docs/search/?q=Output.All 🤔 ).tall-librarian-49374
10/15/2020, 6:53 AM