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 and deploy Jira Server on AWS EC2

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

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

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

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

Share This