Hosting Jira Server in the cloud with Amazon AWS EC2

This guide will show you how to install Jira on Linux with an EC2 AWS server, and configure its PostgreSQL AWS RDS database.

We will cover the following steps to install Jira on AWS:

  • Install Jira Server on AWS EC2
  • Configure the database for Jira on AWS EC2

 

Install and deploy Jira Server on AWS EC2

Go to the AWS EC2 console, select your instance and click on Connection :

AWS EC2
Connect to the instance with a terminal (or use the Amazon guide to connect with Putty), and replace root by admin for the login:
AWS EC2
.

ssh -i “test.pem” admin@ec2-18-195-184-83.eu-central-1.compute.amazonaws.com

sudo su

Then download and install the Oracle JRE Java 8 :

cd /opt/

wget -c –header “Cookie: oraclelicense=accept-securebackup-cookie” https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jre-8u201-linux-x64.tar.gz

tar xzf jre-8u201-linux-x64.tar.gz echo ‘export JAVA_HOME=/opt/jre1.8.0_201’ >> /etc/profile

echo ‘export PATH=$JAVA_HOME/bin:$PATH’ >> /etc/profile

Download and uncompress Jira Software 7.13.0, create the Jira Home directory and export the JIRA_HOME variable:

wget https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-7.13.0.tar.gz

tar xzf atlassian-jira-software-7.13.0.tar.gz

mkdir jira_home

echo ‘export JIRA_HOME=/opt/jira_home’ >> /etc/profile

Create a dedicated user to executeJira and give it the proper rights on the Jira istallation directory and the Jira Home directory :

useradd –create-home –comment “Account for running Jira Software” –shell /bin/bash jira

chown -R jira:jira atlassian-jira-software-7.13.0-standalone/ jira_home/

Change the iptables settings to route Jira listening port from 8080 to 80:

iptables -t nat -A PREROUTING -p tcp –dport 80 -j REDIRECT –to-port 8080

You can now start Jira 7.13:

su – jira -c /opt/atlassian-jira-software-7.13.0-standalone/bin/start-jira.sh

In your browser, go to your instance Public DNS address, you should now see this screen:
AWS EC2
You’ve installed Jira Server on your AWS EC2 instance, congratulations ! You can now go to the next chapter, where we’ll finish the database configuration.

Configure the database for Jira on AWS EC2

Choose I’ll set it up myself and confirm:

AWS EC2
Select My own database, choose PostgreSQL as Database type then fill in the connection informations that you have from the database creation and click on Test connection:
AWS EC2
You should now see a message confirming the access to the database. You can click on Next and wait for a few minutes until the configuration is done. On the next screen you can change your instance Name, the Mode (public for open access or private for restricted access), and the Base URL. You can leave the other settings untouched and click on Next:
AWS EC2
You should then enter you license key, or generate one in your my.atlassian.com account:
AWS EC2
On the next screen, fill in your administrator account information and validate:
AWS EC2
You can leave the email configuration to later and Finish the installation:
AWS EC2
Then, choose your Jira instance language and click on Continue:
AWS EC2
That’s it, you can now access your Jira Server instance on AWS ! You can start configuring your projects and users.

Our Jira experts can help you with your installation and deployment project in AWS Cloud, get in touch with us: we are availalable anywhere in France.

Atlassian Summit 2019 announcements

The 10th Atlassian Summit took place April 9th – 11th in Las Vegas. We’ll unveil all the new features to come for Jira, Confluence, Trello and Bitbucket !

Contactez-nous

  • Nous nous engageons à vous recontacter sous 48 heures
  • Nous discutons ensemble de votre contexte et vos enjeux
  • Nous construisons une proposition de services pour vous accompagner dans les meilleurs délais

Share This