https://pulumi.com logo
#aws
Title
# aws
q

quaint-guitar-13446

12/02/2020, 5:03 AM
Is there a way to load an RDS instance akin to how
Vpc.fromExistingIds
works?
g

gentle-diamond-70147

12/02/2020, 6:11 AM
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

quaint-guitar-13446

12/02/2020, 6:28 AM
@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

cool-fireman-90027

12/02/2020, 12:44 PM
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

gentle-diamond-70147

12/02/2020, 3:15 PM
for the
.get()
function it takes the database name I believe
👍 1
q

quaint-guitar-13446

12/04/2020, 4:19 AM
Yep that is right. The unique database name. Though I had to get the ReplicationGroup first, then get the Cluster from that
2 Views