- Newest
- Most votes
- Most comments
Yes, you will be using a proxy endpoint in the host option instead of an RDS endpoint to make use of RDS proxy for your connection. And you will find this proxy endpoint in console or cli.[+] [+] https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-proxy-connecting.html#rds-proxy-connecting-native This should work provided that you have configured RDS proxy with the credentials you are intending to use in secret manager. [+] https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-proxy-secrets-arns.html
The RDS Proxy has a default endpoint that you connect to when working with an Amazon RDS DB instance. This endpoint is different from the read-write endpoint that connects directly to the DB instance.
The "host" refers to the specific DB instance or cluster that the RDS Proxy is connected to. The proxy can connect to multiple DB instances or clusters, and the "host" can change depending on the target group configuration.
When using RDS Proxy, you should connect to the proxy endpoint instead of the DB instance endpoint. This allows the proxy to manage the database connections and provide benefits like connection pooling, failover handling, and security through IAM and Secrets Manager integration.
RDS Proxy concepts and terminology - Amazon Relational Database Service
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 years ago
There must be something fundamental here that I'm not understanding. Let me try to clarify my question...
When I connect to a databased instance (hosted on AWS or elsewhere), I'm going to construct a connection string such as:
What I can't figure out from the RDS docs is how to form this connection string when I want to connect to the proxy, rather than the instance itself. I'm assuming that the
user
password
anddbname
fields should be the same as the ones I would use to connect directly to the instance. But what abouthost
? Should I use the endpoint for the proxy as the host?There must be something fundamentally wrong in my understanding of RDS proxies. What is it?