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 :

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

ssh -i “test.pem” [email protected]

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:
Jira
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:

Jira
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:
Jira
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:
Jira
You should then enter you license key, or generate one in your my.atlassian.com account:
Jira
On the next screen, fill in your administrator account information and validate:
Jira
You can leave the email configuration to later and Finish the installation:
Jira
Then, choose your Jira instance language and click on Continue:
Jira
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.

Contactez-nous !

Besoin d’un conseil sur une version logicielle à installer ? D’un coaching ou d’une formation ciblée ? Toute l’équipe de consultants certifiés se tient prête à vous assister ! Notre mot d’ordre : viser la performance en vous garantissant expertise, agilité et réactivité. Nous nous engageons à vous recontacter sous 48h.

Share This