Hey folks can someone help me with this: I couldn’...
# getting-started
c
Hey folks can someone help me with this: I couldn’t find an example that works for finding existing resources within my aws (golang). Here are some examples I’m trying to figure out:
Copy code
efsID := "fs-0f1f2f3f4f5f6f7f8" // Replace this with the EFS ID
	// Connect to EFS Filesystem and mount it
	efs, err := efs.GetFileSystem(ctx, "ark-efs", efsID, nil)
	if err != nil {
		panic(err)
	}
Copy code
// Find the default Relational Database Service (RDS)
func findDefaultRDS(ctx *pulumi.Context) *rds.Instance {
	// Find default RDS
	rdsName := "Whatever"
	rdsID := "rds-1234567890"
	rds, err := rds.GetInstance(ctx, rdsName, rdsID)

	if err != nil {
		panic("Could not find RDS")
	}

	return rds
}