Hey there. I'm trying to create the an rds and ec2...
# typescript
b
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
See https://www.pulumi.com/docs/reference/programming-model/#outputs-and-strings for more details on the likely reason for this.
b
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}
);