Is there a way to load an RDS instance akin to how...
# aws
q
Is there a way to load an RDS instance akin to how
Vpc.fromExistingIds
works?
g
Yes, you can use the
.get(...)
lookup function - https://www.pulumi.com/docs/reference/pkg/aws/rds/instance/#look-up.
That exists on all resource types.
q
@gentle-diamond-70147 Ok that's promising. Is the
id
parameter the arn?
Thanks 🙂
Arn doesn't appear to work. Says it doesn't exist.
c
Here is the function for GetInstance: https://www.pulumi.com/docs/reference/pkg/aws/rds/getinstance/#example-usage where you have to pass in the:
The name of the RDS instance
g
for the
.get()
function it takes the database name I believe
👍 1
q
Yep that is right. The unique database name. Though I had to get the ReplicationGroup first, then get the Cluster from that