I’m building an application using Jets framework.
I am using gem "mongoid"
to connect with mongo Atlas cluster and deploying the app AWS (AWS lambda).
Right now the application is connected with Mongo Atlas Cluster.
here is my mongoid.conf file:
development:
clients:
default:
uri: mongodb+srv://user:Password@mymongoapp-xsdmp.mongodb.net/test?retryWrites=true&w=majority
options:
server_selection_timeout: 5
Now I am using VPC Peering for MongoAtlas and AWS and now I want to connect my Jets application through VPC Peering
with MongoAtlas.
I am confused how do I use AWS VPC peering configuration in my Ruby on Jets application