Home / Companies / Couchbase / Blog / Post Details
Content Deep Dive

Database on Amazon: Connecting Couchbase Sync Gateway to Couchbase AMI on AWS

Blog post from Couchbase

Post Details
Company
Date Published
Author
William Hoang, Mobile Developer Advocate, Couchbase
Word Count
1,960
Language
English
Hacker News Points
-
Summary

The document provides a detailed guide on integrating Couchbase Sync Gateway with Couchbase Server on an Amazon EC2 instance for a mobile application, following up on a previous blog post about installing Couchbase AMI on AWS. It begins with accessing and modifying the Couchbase Web Console to create a target data bucket named 'todolite.' The process includes obtaining the server's public IP, setting appropriate permissions for the private key file, and using SSH to connect to the AWS instance. The configuration file 'config.json' is updated to replace the 'server' value with the local Couchbase Server's URL. The guide further describes downloading the ToDoLite Couchbase Mobile application, modifying the Sync URL in the 'BuildConfig.java' file, and starting the Sync Gateway on the EC2 instance. Finally, the document explains how to replicate data across multiple mobile application instances, demonstrating successful synchrony by logging into the Couchbase Web Console to view shared tasks. This comprehensive setup allows for data synchronization across Android devices using the Sync Gateway configuration and stores data on the cloud server.