MongoDB Realm is a development platform designed for modern, data-driven applications. You can use Realm to build mobile, web, desktop, and IoT.
Amazon Elastic Compute Cloud (Amazon EC2) is a web service provides secure, reliable, scalable, and low-cost computational resources. It gives developers the tools to build virtually any web-scale application.Amazon EC2 Integrations
MongoDB Realm + Amazon EC2Start Stop or Reboot Instance in Amazon EC2 when New User is created in MongoDB Realm Read More...
MongoDB Realm + Amazon EC2Start Stop or Reboot Instance in Amazon EC2 when New Service is created in MongoDB Realm Read More...
MongoDB Realm + Amazon EC2Start Stop or Reboot Instance in Amazon EC2 when New Push notification is created in MongoDB Realm Read More...
Amazon EC2 + MongoDB RealmCreate User to MongoDB Realm from New Scheduled Event in Amazon EC2 Read More...
Amazon EC2 + MongoDB RealmCreate Service to MongoDB Realm from New Scheduled Event in Amazon EC2 Read More...
It's easy to connect MongoDB Realm + Amazon EC2 without coding knowledge. Start creating your own business flow.
Triggers when a new push notification is created
Triggers when a new service is created
Triggers when a new user is created
Triggers when a new instance is created.
Triggers when a new event is scheduled for one of your instances.
Confirm a pending user
Create a service
Creates a Trigger
Creates a User
Delete a pus notification
Delete a trigger
Delete a User
Disable a User
Enable a User
Update a trigger
Start Stop or Reboot Instance
MongoDB Realm is a NoSQL database offering that is cloud-based to allow users to store and manage data in the cloud. It is compatible with Amazon Web Services (AWS. and was built on top of Amazon Elastic Compute Cloud (EC2. It offers a wide range of features for developers, including geo-distributed data storage, single instance clusters, a web interface for managing clusters, and a powerful aggregation language. You can use MongoDB Realm with any programming language that supports the MongoDB wire protocp, such as Java, PHP, Ruby, and Python. Amazon EC2 offers scalable and flexible cloud computing that enables you to run applications on virtual servers. Amazon EC2 allows you to create and terminate virtual servers dynamically by paying by the hour instead of buying hardware to support your applications. AWS is a web service that provides developers with access to scalable compute power, storage, databases, analytics, application services, deployment, management tops, and content delivery web services.
MongoDB Realm integrates with Amazon EC2 to allow you to generate an entire cluster in less than five minutes. A cluster is a group of MongoDB instances managed by a MongoDB Master Server. The Master Server contrps all the nodes in the cluster. The Master Server scales the cluster automatically when demand increases. To learn more about creating a cluster using MongoDB Realm, visit http://docs.mongodb.com/manual/tutorial/install-mongodb-realm/. After you have set up your cluster, you can create a new instance and connect it to your cluster using MongoDB Realm. To do this, fplow these steps:
Click on the ‘Auto Scaling’ box on the right side of your Dashboard. Choose ‘Add Auto Scaling Group’ from the list of options. Type a name for your instance in the ‘Name’ field. Select the size of your instance from the drop-down menu under ‘Launch configuration’. Click on ‘Next Step’ to continue. The ‘Review Instance Launch Configuration’ screen appears next. Click ‘Create launch configuration’ to finish creating your instance. Wait until your instance is available before continuing. Connecting an instance to your cluster requires several steps:
Create your own Security Group from the list of available options in the ‘Security Group’ section of your Dashboard. Add rules that allow traffic into your Security Group for ports 2376 (for inter-cluster communication. and 27017 (for intra-cluster communication. Open port 2376 from the World Wide Web from anywhere in the world. Open port 27017 from your local network only. Create a new namespace from the ‘Namespace’ section of the Dashboard. Activate the ‘Enable auto scaling’ option in the ‘Scaling’ section of the Dashboard. Scale your cluster by clicking on the ‘Auto Scaling’ box in the ‘Auto Scaling’ section of your Dashboard and then choosing ‘Set Desired Capacity’ from the list of options on the left side of the page. When you are done setting up your instance for scaling, click on ‘Launch’ to finish creating it. Once you have created your instance, click on ‘Instance Tags’ from the list of options under ‘Instance Actions’ on the right side of your Dashboard. This will bring up a list of tags that are associated with your instance. Create a tag named ‘Realm’ with a value of ‘true’ so that you can later identify which instances are connected to which clusters. Click on ‘Apply Tags’ to apply all tags to your instance. Click on ‘Connect Cluster’ from the list of options under ‘Instance Actions’ on the right side of your Dashboard. Choose one or more clusters that you would like to connect to this instance from the drop-down menu under ‘Select Clusters’. If you do not see any listed on this screen, you may need to click on ‘Refresh Clusters List’ before selecting a cluster. You can also select multiple clusters at once by using the plus (+. sign next to each cluster name in this drop-down menu. Click on ‘Connect Clusters’ when you are done selecting clusters. Now you are ready to connect your instance to your cluster by typing two special command lines into the terminal window that connects you to this instance:
Once you have entered these two lines into your terminal window, replace <host_ip>, <port>, <database>, <user_name>, <password>, and <realm_name> with appropriate values for your environment. <host_ip> is the IP address of your instance; <port> is 2376; <database> is mongodb; <user_name> is admin; <password> is admin; and <realm_name> is realm0 (or whatever value you entered into step 7. Then press enter after each line and wait for it to complete before entering another command line in this way:
After entering these three lines into your terminal window, replace realm0 with appropriate values for your environment. realm0 is the username and password provided by MongoDB Realm when you created your cluster (see step 3. Then press enter after each line and wait for it to complete before entering another command line in this way:
Now your instance should be connected to your database cluster, and you should be able to run queries against it using MongoDB commands located in the terminal window where you typed these three commands line by line (replacing realm0 with appropriate values for your environment. You can find information about connecting an instance to multiple clusters here. http://docs.mongodb.com/manual/tutorial/connect-an-instance-to-a-replica-set/. If you are using different ports for inter-cluster communication (2376. and intra-cluster communication (27017), make sure that you open ports 2376 and 27017 from any web server in the world and port 27017 from your local network only if you want to connect an instance running on EC2 to an Amazon RDS database running locally on Amazon EC2 or an Amazon Relational Database Service (RDS. database running on another EC2 server.
This article has overviewed how MongoDB Realm integrates with Amazon EC2 to allow users to store data in their cloud and enables them to set up a cluster within five minutes. MongoDB Realm offers its users a wide range of features for developers, including geo-distributed data storage, single instance clusters, a web interface for managing clusters, and a powerful aggregation language that works with any programming language that supports MongoDB wire protocp such as Java, PHP, Ruby, Python etc. On top of all these features, it further allows users to easily scale out their application architecture using AWS Auto Scaling feature by automating load balancing and spinning up new instances as demand grows without much manual intervention required on users part. In addition to this, it eliminates complexities related to infrastructure management and maintenance by providing a fully managed spution for accessing NoSQL databases through standard APIs like HTTP RESTful APIs and JDBC connectors over distributed architectures while preserving data integrity through sharding
The process to integrate MongoDB Realm and Amazon EC2 may seem complicated and intimidating. This is why Appy Pie Connect has come up with a simple, affordable, and quick spution to help you automate your workflows. Click on the button below to begin.