https://pulumi.com logo
Title
b

brave-waitress-3546

02/19/2023, 9:40 AM
Good morning team. I have a question. If I want to use any resources output in my description for an another resource, interpolating with Sprintf usually gives me only a memory address 😕 Example
artifactregistry.NewRepositoryIamMember(ctx, fmt.Sprintf("iam-member-%v",serviceAccount.Name), nil)
Gives me a resource name
iam-member-{0x14000236a80}
Is there any way to convert it to a string properly. there are no methods to do so on the StringOutput itself, tried the ApplyT with type conversion to, give me the same result.
b

billowy-army-68599

02/19/2023, 4:03 PM
You can’t convert to a string. You’ll need to interpolate it using pulumi.Sprintf