bland-actor-69047
10/31/2024, 7:12 AMorganizations.GetIAMPolicyBinding
accepts members as a []string
, and I need to put a newly created service account's name there.
Here's a snippet that I have trouble with:
sshPolicy := must.OK1(organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{
Bindings: []organizations.GetIAMPolicyBinding{
{
Role: "roles/compute.osLogin",
Members: pulumi.StringArray{
sshServiceAccount.Name, // cannot use pulumi.StringArray as []string
},
},
},
}))