Cross region rdsClient connection timing out #2142
-
I have a global database In
Both of these calls fail with a timeout. I am assuming there is something wrong with how I am setting up my rds client. Can someone help me understand what I might be doing wrong here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @dandrew-stripe , You can set cfg, err := config.LoadDefaultConfig(context.Background(), config.WithRegion("us-west-2")) However I'm not sure if what you are asking is possible. If the RDS resource only exists in ap-south-1 than you might hit a ResourceNotFoundException or something in that vein.
What kind of timeout? What is the error that is thrown? |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Hi @dandrew-stripe ,
You can set
WithRegion
to the region you want to route your request to:However I'm not sure if what you are asking is possible. If the RDS resource only exists in ap-south-1 than you might hit a ResourceNotFoundException or something in that vein.
What kind of timeout? What is the error that is thrown?