I have following code: ```// Create EC2 Instance s...
# golang
c
I have following code:
Copy code
// Create EC2 Instance
serverName := fmt.Sprintf("%s-server", namePrefix)

server, err := ec2.NewInstance(ctx, serverName, &ec2.InstanceArgs{
    ...
})
if err != nil {
	return err
}

hostnameOutput := server.PrivateIp.ApplyT(func(s string) string {
	return fmt.Sprintf("ip-%s", strings.ReplaceAll(s, ".", "-"))
}).(pulumi.StringOutput)

device, err := tailscale.GetDevice(ctx, &tailscale.GetDeviceArgs{
	Hostname: pulumi.StringRef(fmt.Sprintf("%s", hostnameOutput)),
	WaitFor:  pulumi.StringRef("10s"),
}, nil)
if err != nil {
	return err
}

ctx.Export("Tailscale device", pulumi.Sprintf("%s", device.Id))
and I’m trying to figure out how to transfer
pulumi.StringOutput
to
string
. Tailscale.GetDevice() needs string.