Skip to main content

Deploy Airbyte on AWS (Amazon EC2)

This page guides you through deploying Airbyte Open Source on an Amazon EC2 instance by setting up the deployment environment, installing and starting Airbyte, and connecting it to the Amazon EC2 instance.


The instructions have been tested on Amazon Linux 2 AMI (HVM).


Set up the environment

  1. To connect to your instance, run the following command on your local terminal:
SSH_KEY=~/Downloads/dataline-key-airbyte.pem # the file path you downloaded the key
INSTANCE_IP=REPLACE_WITH_YOUR_INSTANCE_IP # find your IP address in the EC2 console under the Instances tab
chmod 400 $SSH_KEY # or ssh will complain that the key has the wrong permissions
ssh -i $SSH_KEY ec2-user@$INSTANCE_IP # connect to the aws ec2 instance AMI and the your private IP address
  1. To install Docker, run the following command in your SSH session on the instance terminal:
sudo yum update -y
sudo yum install -y docker
sudo service docker start
sudo usermod -a -G docker $USER
  1. To install docker-compose, run the following command in your ssh session on the instance terminal:
sudo yum install -y docker-compose-plugin
docker compose version

If you encounter an error on this part, you might prefer to follow the documentation to install the docker compose plugin manually (make sure to do it for all users).

  1. To close the SSH connection, run the following command in your SSH session on the instance terminal:

Install and start Airbyte

In your local terminal, run the following commands:

  1. Connect to your instance:
ssh -i $SSH_KEY ec2-user@$INSTANCE_IP
  1. Install Airbyte:
mkdir airbyte && cd airbyte
chmod +x
./ -b

Connect to Airbyte


For security reasons, we strongly recommend not exposing Airbyte on Internet available ports.

  1. Create an SSH tunnel for port 8000:

If you want to use different ports, modify API_URL in your .env file and restart Airbyte. Run the following commands in your workstation terminal from the downloaded key folder:

# In your workstation terminal
ssh -i $SSH_KEY -L 8000:localhost:8000 -N -f ec2-user@$INSTANCE_IP
  1. Visit http://localhost:8000 to verify the deployment.

Get Airbyte logs in CloudWatch

Follow this guide to get your logs from your Airbyte Docker containers in CloudWatch.


If you encounter any issues, reach out to our community on Slack.