Installing on Amazon Web Services#


ODK Aggregate is no longer being updated. Please use ODK Central instead.


To use this setup, you must able to link a domain name to the machine's IP address. If you don’t own a domain, services such as FreeDNS offer free sub-domains under a range of domains.


Make sure you have selected the availability zone where you want to perform your actions. You can choose the availability zone using the dropdown menu at the top-right corner of the AWS console website. Choose a region that's close to the location where data is going to be collected.

Create a VPC#

  1. Go to the VPC Dashboard.

  2. Click on Launch VPC Wizard.

  3. Follow the wizard for the VPC with a Single Public Subnet configuration.

  4. Enter aggregate-vpc (or your desired name) in the VPC Name field.

  5. Click on Create VPC.

Create a security group#

  1. Go to the VPC - Security Groups tab.

  2. Click on Create security group.

  3. Follow the wizard for the VPC with a Single Public Subnet configuration.

  4. Enter aggregate-sg (or your desired name) as the name and description.

  5. Select the VPC you previously created.

  6. Click on Create.

  7. Click on the newly created security group from the list, click on the Inbound rules tab, the Edit rules.

  8. Add the following rules to allow SSH, HTTP, and HTTPS traffic.









  9. Click on Save rules.

Create an IAM role#

The EC2 machine needs an IAM role to query its tags.

  1. Go to the IAM - Roles tab.

  2. Click on Create role.

  3. Select the AWS service box, and click on the EC2 link.

  4. Click on Next: Permissions.

  5. Search for AmazonEC2ReadOnlyAccess, and select it.

  6. Click on Next: Tags and do nothing.

  7. Click on Next: Review.

  8. Enter aggregate-role (or your desired name) as the name.

  9. Click on Create role.

Create an EC2 machine#

  1. Go to the EC2 Dashboard.

  2. Click on Launch instance.

  3. Search for the Ubuntu Server 18.04 LTS AMI.

  4. Select the 64-bit (x86) option and click on Select.

  5. Select the instance type you want to use.

    A minimum setup is a t2.small instance type (1 vCPU, 2 GB RAM), but you should review your requirements and choose a bigger instance type according to your needs.

  6. Click on Next: Configure Instance Details.

  7. Select the VPC you previously created in the Network dropdown.

  8. Select Enable in the Auto-assign Public IP dropdown.

  9. Select the IAM role you previously created in the IAM role dropdown.

  10. Toggle the Advanced Details section and copy and paste the contents of this Cloud-Config script.

  11. Click on Next: Add Storage and edit the storage settings.

    A minimum setup is 30 GiB of storage, but you should review your requirements and adjust the value of the Size (GiB) field according to your needs.

  12. Click on Next: Add Tags.

  13. Add a aggregate.hostname key with the domain name as the value (e.g., your.domain). This hostname will be used by the Cloud-Config script to configure your machine's HTTPS support.

  14. Click on Next: Configure Security Group.

  15. Select an existing security group and select the security group you previously created.

  16. Click on Review and Launch and after review, click on Launch.

  17. You will be offered the option of using an existing key pair or creating one. It's very important that you follow the dialog's instructions carefully to be able to access your machine once it's created.

  18. When you're ready, click on Launch instances.

Set up your domain#


EC2 machines use IP addresses which can change if you stop and start (but not reboot) the machine. To ensure your Aggregate install will always be reachable using the same IP address, use an Elastic IP by following these instructions.

  1. Go to the EC2 - Instances tab and find your machine.

  2. Take note of the IPv4 Public IP address (e.g., and set a DNS A record pointing to it.

    After clicking on the instance from the list, look for under the Description tab at the bottom of the window. The IPv4 Public IP field is in the right column.

    If you own a domain, check your domain registrar's instructions. If you don't own a domain, we recommend using FreeDNS to get a free sub-domain.

    Your domain's TTL setting will affect to how much time you will have to wait until you can proceed to the next step. If your provider gives you the option of setting a TTL, use the lowest value you can.

  3. Open a web browser, and periodically check the domain until you see the Aggregate website. You won't be able to continue the install until you see the website load.

Enable HTTPS#

  1. Connect to your machine via SSH using ssh -i /path/to/the/key.pem ubuntu@your.domain.

    Make sure your PEM key pair file has the correct file permissions.

  2. Once you are logged in, run sudo certbot run --nginx --non-interactive --agree-tos -m YOUR_EMAIL --redirect -d YOUR_DOMAIN.

    Be sure to replace YOUR_EMAIL and YOUR_DOMAIN with your email address and your domain.

    Lets Encrypt uses the email you provide to send notifications about expiration of certificates.

Log into Aggregate#

  1. Go to https://your.domain and check that Aggregate is running.

  2. Click Sign in with Aggregate password to login with the default username and password.

    username: administrator
    password: aggregate
  3. Change the administrator account's password!

Did this page help you?

Selecting an option will open a 1-question survey

πŸ‘ Yes πŸ‘Ž No