How to make an already in-production database private?
I have previously created a public database with not NAT nor Jumpbox.
Now I'm planning in securing this database by making it private and using a jumpbox.
I've already added a NAT gateway to the network in use and created a Jumpbox. But I was wondering if there is a way in making the database private and keep using it in my applications without ruining my already deployed applications' connection to it?
Thanks @bugsysha for the help, I tried moving the database to a private subnet as well, and all the deployed
vapor projects failed to connect to the database.
Can you just use security group to restrict access to only the ip's you want to have access? This way it is private only to you and your infrastructure but without using private subnet?
Thank you all for the help, I think my best bet is to just create a private database in vapor and migrate all the data from my old instance to the new one and use it in the projects!