Install using CloudFormation

Install clustered On-premise version of Bugsnag using CloudFormation.

Before installation

To get started with your Bugsnag On-premise installation, you’ll need the following things prepared in advance:

  • If this is your first time installing Bugsnag On-premise, you’ll need to contact us to schedule a guided installation. We’ll get you set up with a license, and walk you through the installation process.
  • SMTP credentials are required for installation. These are used to invite collaborators and receive error notification emails.
  • AWS SSH key pair
  • IAM role for CloudFormation and a Lambda function to assume; the role will need a managed policy described here
  • A Route 53 hosted zone (if you want the template to create DNS records with given names for load balancers)
  • SSL/TLS certificates in AWS ACM (for load balancers)


Installation can be done either through the CloudFormation UI or through the AWS CLI, see below for more information.

Installation will take some time to apply, usually around 20-25 minutes as this sets up a Kubernetes cluster, nodes, load balancers, ECR repositories, and an EC2 instance. so everything is ready for running Bugsnag.

Installing using CloudFormation UI

Apply the CloudFormation template through the AWS console using the following template URL:

and enter the parameters listed on the page.

Installing using AWS cli

Run the following:

aws cloudformation create-stack \
  --stack-name bugsnag-onprem \
  --capabilities CAPABILITY_IAM \
  --template-url \
  --role-arn arn:aws:iam::90000:role/bugsnag-onprem-execution-role \
  --parameters \
    ParameterKey=ExecutionRole,ParameterValue=arn:aws:iam::90000:role/bugsnag-onprem-execution-role \
    ParameterKey=ClusterName,ParameterValue=bugsnag-onprem-1 \
    ParameterKey=NodeImageId,ParameterValue=ami-1234567890abcdef1 \
    ParameterKey=KeyName,ParameterValue=bugsnag-onprem-key \
    ParameterKey=HostedZoneId,ParameterValue=ABC123DEF456 \
    ParameterKey=EventServerHostname, \
    ParameterKey=EventServerCertificateArn,ParameterValue=arn:aws:acm:us-west-1:90000:certificate/00000000-cccc-5555-9999-dddddddddddd \
    ParameterKey=GrafanaHostname, \
    ParameterKey=GrafanaCertificateArn,ParameterValue=arn:aws:acm:us-west-1:90000:certificate/00000000-cccc-5555-9999-dddddddddddd \
    ParameterKey=HooksServerHostname, \
    ParameterKey=HooksServerCertificateArn,ParameterValue=arn:aws:acm:us-west-1:90000:certificate/00000000-cccc-5555-9999-dddddddddddd \
    ParameterKey=DashboardHostname, \
    ParameterKey=DashboardCertificateArn,ParameterValue=arn:aws:acm:us-west-1:90000:certificate/00000000-cccc-5555-9999-dddddddddddd \
    ParameterKey=ReleaseServerHostname, \
    ParameterKey=ReleaseServerCertificateArn,ParameterValue=arn:aws:acm:us-west-1:90000:certificate/00000000-cccc-5555-9999-dddddddddddd \
    ParameterKey=SessionServerHostname, \
    ParameterKey=SessionServerCertificateArn,ParameterValue=arn:aws:acm:us-west-1:90000:certificate/00000000-cccc-5555-9999-dddddddddddd \
    ParameterKey=UploadServerHostname, \
    ParameterKey=UploadServerCertificateArn,ParameterValue=arn:aws:acm:us-west-1:90000:certificate/00000000-cccc-5555-9999-dddddddddddd \
    ParameterKey=ConfigServerSecurityGroup,ParameterValue=sg-12ab34cd \
    ParameterKey=ConfigServerSubnetID,ParameterValue=subnet-12ab34cd \
    ParameterKey=ConfigServerKeyName,ParameterValue=config-server-key \
    ParameterKey=ConfigServerImageId,ParameterValue=ami-1234567890abcdef1 \

For NodeImageId, see for more information about the AMI to use.

For ConfigServerImageId see for more information about the AMI to use.

Initialize Bugsnag

Once the stack has finished creating, the template will create a dedicated Config Server for managing installations and upgrades that has all the tools required for getting Bugsnag setup. Connect to that instance for the next steps.

Before you can initialize Bugsnag, you will need to do the following steps.

First you will need to configure the AWS CLI to have access to the ECR repository and EKS Kubernetes cluster, you can do this by running:

aws configure

You will also need to configure kubectl to have the correct config to interact with the Kubernetes cluster, this can be done by running:

aws eks --region region update-kubeconfig --name cluster_name --role-arn role_arn

The cluster name and role ARN (execution role ARN in the template) is something you specified in the template.

To get the credentials required by the installer for pushing the images to your ECR docker registry, you should also run

aws ecr get-login --no-include-email

Run Replicated Ship

Run the following to initialize Bugsnag On-premise using Replicated Ship configuration tool. Make sure to run this command from a sensible directory as the tool will store configuration under .ship folder in the current directory. This will contain the state of your installation including the configuration and therefore should be backed up.

docker pull replicated/ship && \
docker run -it -p 8800:8800 --rm -v `pwd`:/out \
  -v /var/run/docker.sock:/var/run/docker.sock \
  replicated/ship init \

You will be asked to enter your Bugsnag On-premise license. Enter the license you received from Bugsnag to continue to the next step.

The configuration tool will be available at http://INSTANCE_IP:8800.

Bugsnag configuration

Follow the steps in the configuration tool and configure your installation as directed on the settings page. When configuring the registry you can use the registry setup by the CloudFormation template, the registry address will be an output of the CloudFormation stack.

Once configured the next step will push all of the required images to your Docker registry and generate a bugsnag-kubernetes.yaml file in your current directory with instructions on how to apply that to start Bugsnag.

It can take several minutes for Bugsnag On-premise to fully start up.

Account & project creation

Now Bugsnag is running, you should be able to access the Bugsnag dashboard, where you’ll need to create your account and first project.

Visit your Bugsnag dashboard in a web browser (available by default at the address you specified in the CloudFormation template) to set up your account and create projects for each of the applications you wish to monitor.

Notifier configuration

Once you have created your account and first project you will need to configure your applications to send errors and sessions information to your Bugsnag instance instead of and respectively. Follow the instructions on configuring platform notifiers for how to do this.