https://pulumi.com logo
#typescript
Title
# typescript
b

billowy-needle-56870

07/29/2019, 10:19 AM
Hey there. I'm trying to create the an rds and ec2 instance. All it's fine, but when i try to pass th rds to the ec2 userData parameter, with createUserData I get the following error Calling [toString] on an [Output<T>]
w

white-balloon-205

07/29/2019, 4:09 PM
See https://www.pulumi.com/docs/reference/programming-model/#outputs-and-strings for more details on the likely reason for this.
b

billowy-needle-56870

07/29/2019, 4:24 PM
Thanks! I traied to update with the following code, but I obtain the same result let endpoint = this.rds.endpoint; const dbHost = pulumi.all([endpoint]).apply(([endpoint]) =>
${endpoint}
);