I Tested What Happens to Existing Connections and DNS Names When You Change an RDS Proxy Identifier or Endpoint Name

I Tested What Happens to Existing Connections and DNS Names When You Change an RDS Proxy Identifier or Endpoint Name

I tested on Aurora PostgreSQL what happens to existing connections and DNS names when you rename the identifier or endpoint of a running RDS Proxy.
2026.11.13

This page has been translated by machine translation. View original

Hello, I'm Hayashi.

The DNS name of an RDS Proxy endpoint includes the Proxy identifier and the endpoint name.

I checked whether changing the identifier or endpoint name of a running Proxy affects existing connections, and how the DNS name changes.

The impact of changing the authentication settings was checked in the previous article.

https://dev.classmethod.jp/articles/202610-rds-proxy-auth-change-existing-connections/

What the documentation tells us

The user guide includes examples of commands for changing the identifier and the endpoint name.
I could not confirm from the documentation the impact on existing connections or how the DNS name before the change is handled.

https://docs.aws.amazon.com/ja_jp/AmazonRDS/latest/AuroraUserGuide/rds-proxy-modifying-proxy.html

https://docs.aws.amazon.com/ja_jp/AmazonRDS/latest/AuroraUserGuide/rds-proxy-endpoints.ModifyingEndpoint.html

So, using a configuration of Aurora PostgreSQL and RDS Proxy with password-authenticated clients, I verified the following three changes.

  • Changing the Proxy identifier
  • Changing the name of an additional endpoint
  • Changing the security group of an additional endpoint

Conclusion first

  • Changing any of the identifier, the endpoint name, or the endpoint's security group does not affect existing connections
  • Changing the identifier changes only the DNS name of the default endpoint
  • New connections to the DNS name before the change fail with a name resolution error, so you need to change the application's connection target at the same time as the name change

Test environment

The configuration is the same as in the previous article.
I separated the database VPC from the client VPC and placed an additional endpoint in the client VPC.
The default endpoint was connected via VPC peering.

Architecture diagram

Item Details
Database Aurora PostgreSQL 17.7 (LTS), db.t4g.medium
Client Amazon Linux 2023 EC2, Python 3.9.25, psycopg2 2.9.12
Region Tokyo (ap-northeast-1)

Test method

I changed the settings while connected to the Proxy and checked whether errors occurred on each connection.

  1. From EC2, connect to the Proxy in four ways
  2. After about one minute, change the setting
  3. Check for connection errors until 120 seconds have passed after the status of the Proxy and endpoint returned to available
  4. Check name resolution and new connections using the DNS name before the change and the DNS name after the change

If no errors occurred on the existing connections, I judged that there was no impact.

The connections are the same four types as in the previous article. I prepared each for the default endpoint and the additional endpoint.
I checked three kinds of existing connections: an unpinned connection, a pinned connection, and a running query.
For new connections, I reconnected every second to the DNS name at the time each change was started.

Commands used for the changes

Changing the Proxy identifier.

aws rds modify-db-proxy --db-proxy-name stg-order-proxy \
  --new-db-proxy-name stg-order-proxy-v2

Changing the name of the additional endpoint.

aws rds modify-db-proxy-endpoint --db-proxy-endpoint-name stg-order-app \
  --new-db-proxy-endpoint-name stg-order-app-v2

Changing the security group of the additional endpoint. I set the same rules in the new security group as in the old one.

aws rds modify-db-proxy-endpoint --db-proxy-endpoint-name stg-order-app-v2 \
  --vpc-security-group-ids sg-xxxxxxxxxxxxxxxxx

Results

Existing connections were not affected

Change Errors on existing connections Time required for the change
Proxy identifier None About 2 minutes
Additional endpoint name None About 2 minutes 40 seconds
Additional endpoint security group None About 1 minute 30 seconds

No errors occurred on the unpinned connection, the pinned connection, or the running query.
The results were the same via the default endpoint and via the additional endpoint.
While the security group was being changed, no errors occurred on new connections either.

Only the DNS name of the renamed target changes

Change DNS name of default endpoint DNS name of additional endpoint
Proxy identifier Changes Does not change
Additional endpoint name Does not change Changes
Additional endpoint security group Does not change Does not change

This is the DNS name of the default endpoint when the identifier was changed.

変更前: stg-order-proxy.proxy-xxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com
変更後: stg-order-proxy-v2.proxy-xxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com

This is the DNS name of the additional endpoint when the name of the additional endpoint was changed.

変更前: stg-order-app.endpoint.proxy-xxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com
変更後: stg-order-app-v2.endpoint.proxy-xxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com

Applications connected to the additional endpoint did not need to change their connection target even when the identifier was changed.

New connections to the DNS name before the change fail

After the name was changed, new connections to the DNS name before the change failed with a name resolution error.
This is the log from when the identifier was changed.

12:26:14 modify-db-proxy を実行
12:28:20 Proxyのステータスが available
12:28:24 default/dbadmin new ERROR OperationalError: could not translate host name "stg-order-proxy.proxy-xxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com" to address: Name or service not known

New connections to the DNS name after the change succeeded in both changes.

The application's connection target must be switched to the DNS name after the change at the same time as the name change.

There was a period right after the change when connections to the DNS name before the change still worked, but after about one hour the name could no longer be resolved.

Summary

I checked the impact on existing connections and DNS names when changing the RDS Proxy identifier or endpoint name.

  • Changing any of the identifier, the endpoint name, or the endpoint's security group does not affect existing connections
  • Changing the identifier changes only the DNS name of the default endpoint
  • New connections to the DNS name before the change fail with a name resolution error, so you need to change the application's connection target at the same time as the name change

I hope this article is helpful to someone. Thank you for reading to the end!

References

https://docs.aws.amazon.com/ja_jp/AmazonRDS/latest/AuroraUserGuide/rds-proxy-modifying-proxy.html

https://docs.aws.amazon.com/ja_jp/AmazonRDS/latest/AuroraUserGuide/rds-proxy-endpoints.ModifyingEndpoint.html

https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_ModifyDBProxy.html

https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_ModifyDBProxyEndpoint.html

https://dev.classmethod.jp/articles/202610-rds-proxy-auth-change-existing-connections/

Share this article

AWSのお困り事はクラスメソッドへ