?>

MongoDB Realm + Amazon EC2 Integrations

Appy Pie Connect allows you to automate multiple workflows between MongoDB Realm and Amazon EC2

About MongoDB Realm

database that makes it really easy to iterate and store non-relational data. No more crazy SQL queries and ALTER tables to add extra data!

About Amazon EC2

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

Best MongoDB Realm and Amazon EC2 Integrations

  • MongoDB Realm Slack

    Amazon EC2 + Slack

    Get notified in Slack when a new instance is created in Amazon EC2 Read More...
    When this happens...
    MongoDB Realm New Instance
     
    Then do this...
    Slack Send Channel Message
    Amazon EC2 is a web service that provides resizable compute capacity in the cloud. With this integration, you can get a Slack message when an EC2 instance is launched. Useful for keeping track of your resource usage and spotting when someone else has snuck in and rented your spot from under you. Connecting Amazon EC2 to Slack is easy and does not coding knowledge.
    How It Works
    • A new instance is created in Amazon EC2
    • Appy Pie Connect posts a message to your Slack account
    What You Need
    • Amazon EC2 account with at least one instance
    • Slack account
  • MongoDB Realm Slack

    Amazon EC2 + Slack

    Receive Slack notifications for new Amazon EC2 scheduled events Read More...
    When this happens...
    MongoDB Realm New Scheduled Event
     
    Then do this...
    Slack Send Channel Message
    This integration will post a message into a Slack channel every time an instance is created on the EC2 account you link with Appy Pie Connect. This is useful if you run your own business and want to know about what’s happening on your own cloud, so you can get to work straight away. You can set up triggers to notify specific Slack channels of each EC2 event type.
    How This Works
    • A new event is scheduled in Amazon EC2
    • Appy Pie Connect sends a Slack channel message
    What You Need
    • Amazon EC2 account
    • Slack account
  • MongoDB Realm Amazon EC2

    Gmail + Amazon EC2

    Start, stop or Reboot an instance from a starred Gmail email [REQUIRED : Business Gmail Account] Read More...
    When this happens...
    MongoDB Realm New Starred Email
     
    Then do this...
    Amazon EC2 Start Stop or Reboot Instance

    If you want to control your Amazon Elastic Compute Cloud (Amazon EC2) from your Gmail then this integration is for you. Once you set it up, whenever you star an email in Gmail, Appy Pie Connect will automatically start, stop or reboot (according to the set schedule) an instance running in your Amazon EC2. With this Gmail- Amazon EC2, you can reduce the costs of running tests and Amazon EC2 instances.

    How this integration works
    • You star an email in Gmail
    • Appy Pie Connect will automatically start, stop or reboot an instance in Amazon EC2
    What You Need
    • A Gmail account
    • An Amazon EC2
  • MongoDB Realm Amazon EC2

    {{item.triggerAppName}} + {{item.actionAppName}}

    {{item.message}} Read More...
    When this happens...
    MongoDB Realm {{item.triggerTitle}}
     
    Then do this...
    {{item.actionAppImage}} {{item.actionTitle}}
Connect MongoDB Realm + Amazon EC2 in easier way

It's easy to connect MongoDB Realm + Amazon EC2 without coding knowledge. Start creating your own business flow.

    Triggers
  • New Push notification

    Triggers when a new push notification is created

  • New Service

    Triggers when a new service is created

  • New User

    Triggers when a new user is created

  • New Instance

    Triggers when a new instance is created.

  • New Scheduled Event

    Triggers when a new event is scheduled for one of your instances.

    Actions
  • Confirm Pending User

    Confirm a pending user

  • Create Service

    Create a service

  • Create Trigger

    Creates a Trigger

  • Create User

    Creates a User

  • Delete Push Notification

    Delete a pus notification

  • Delete Trigger

    Delete a trigger

  • Delete User

    Delete a User

  • Disable User

    Disable a User

  • Enable User

    Enable a User

  • Update Trigger

    Update a trigger

  • Start Stop or Reboot Instance

    Start Stop or Reboot Instance

How MongoDB Realm & Amazon EC2 Integrations Work

  1. Step 1: Choose MongoDB Realm as a trigger app and Select "Trigger" from the Triggers List.

    (30 seconds)

  2. Step 2: Authenticate MongoDB Realm with Appy Pie Connect.

    (10 seconds)

  3. Step 3: Select Amazon EC2 as an action app.

    (30 seconds)

  4. Step 4: Pick desired action for the selected trigger.

    (10 seconds)

  5. Step 5: Authenticate Amazon EC2 with Appy Pie Connect.

    (2 minutes)

  6. Your Connect is ready! It's time to start enjoying the benefits of workflow automation.

Integration of MongoDB Realm and Amazon EC2

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:

  • mongorestore --host <host_ip> --port <port> --db <database> --username <user_name> --password <password> --authenticationDatabase <realm_name> --authenticationUser <realm_username> --authenticationPassword <realm_password> --authSource localhost /<directory/to/data>/.mongodb 2. mongo --host <host_ip> --port <port> --authenticationDatabase <realm_name> --authenticationUser <realm_username> --authenticationPassword <realm_password>

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:

  • mongod --shardsvr --replSet rs0 -f /<directory/to/data>/.mongodb 2. mongos --shardsvr --replSet rs0 -f /<directory/to/data>/.mongodb 3. mongo --host localhost -u realm0 -p realm0

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:

  • mongorestore --host localhost --port 26000 --db admin --username admin --password admin –authenticationDatabase realm0 –authenticationUser realm0 –authenticationPassword realm0 –authSource localhost /<directory/to/data>/.mongodb 2. mongo --host localhost --port 26000 -u admin -p admin

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.