I have a PostgreSQL database that is running on AWS. I also have a database running locally on a Raspberry Pi, that is supposed to replicate the changes from the AWS one. I was thinking of using Postgres' logical replication feature, but I am not sure if it is doable without setting a static IP address or a DNS entry for my Raspberry Pi, which I don't want to do.
Is it doable? Is it a good idea?
I looked at AWS IoT Core, which would be AWS's solution for this problem, but I feel like it is an overkill.