If you're using Engine 15 or higher:
When setting up a database in RDS, the default parameter group for postgres15 (default.postgres15) is used. However, we need to change the 'rds.force_ssl' parameter, which isn't editable in the default.postgres15 group. To do this, we'll create a new parameter group for postgres15, which allows us to make edits.
Once the new parameter group is created, we'll select it and find the 'rds.force_ssl' parameter. We'll change its value from 1 to 0 (the default is 1).
Then, in the database configuration tab, we'll switch the 'DB instance parameter group' from the default group to the new one.
After making these changes, we'll reboot the database and try connecting again. This should work.
Steps to Follow
- Set up a new parameter group for postgres15, as the default parameter group (default.postgres15) does not allow editing the 'rds.force_ssl' parameter.
- Select the newly created parameter group for postgres15.
Locate the 'rds.force_ssl' parameter within the selected parameter group.
- Change the value of the 'rds.force_ssl' parameter from 1 to 0 (the default value is 1).
- Navigate to the database configuration tab.
- Switch the 'DB instance parameter group' from the default group to the newly created parameter group for postgres15.
- After applying these changes, reboot the database.
Attempt to connect to the database again to ensure the changes are effective.