This message was deleted.
# typescript
s
This message was deleted.
r
The only way I found is to use `pulumi.interpolate`; I also couldn't make
apply
work; something like
Copy code
const dbuser = new gcp.sqlUser('...', {
  // ...,
  name: pulumi.interpolate`${name}`,
});
f
When I use what u suggest I got
Argument of type 'Output<string>' is not assignable to parameter of type 'string
interpolate
returns
Output<string>
so it doesn’t really solve my issue
r
But usually, you should be able to use
Output<string>
as input... 🤔
f
You should be able to pass this directly in like
password: pass
— did you get an error doing that?
f
I had a wrapper function on top of it. like this
Copy code
export function AddDBUser(user: string, pass: string, instanceName: string){ 
    return new gcp.sql.User(`${user}-database-user`, {
    instance: instanceName,
    name: user,
    password: pass,
});
}
The error was coming from that function. once I changed the arguments to
pulumi.Input<string>
it worked.
f
ah, okay — makes sense