Install own Gitlab Server on AWS (Ubuntu) instance

Amazon Web Services (AWS) is a comprehensive cloud computing platform, provided by Amazon. It provides abroad set of infrastructure as a service (IaaS), platform as a service (PaaS) and packaged software as a service (SaaS) offerings. For further detail on AWS, you can go to amazon’s official website.

Here am going to discuss, how we can install our own Gitlab server on AWS instance, with public ip address share by AWS. If you want to access it on domain, you can configure domain with AWS instance.

Follow steps to install Gitlab on AWS instance Ubutnu

First of all, login to you aws amazon account. And start your new install, am using Ubuntu 16 bit operation system to install it.

Choose medium type aws instance of Ubutnu.

Click on Next, Next configuration button of AWS console, No special configuration required here. Only one important thing, we have configure is Security Group. In Security Group add rule of HTTP and HTTPS, so that we can access over Gitlab server on browser, also download your private key .pem file, that so we can access AWS instance over SSH. After you added security group for HTTP and HTTPS, click on Review and Launch button.

If everything going well then make you are able to find Public DNS (IPv4) IP address on instance list page.


Login to AWS instance with recently downloaded .pem key file. Here is command that you can use to connect over ssh.

ssh -i instance-name.pem ubuntu@{public-ip-address}

If you are getting file permission issue then you have to change .pem file permission to 400.

sudo chmod 400 /path/instance-name.pem

Follow the steps to install Gitlab Server on AWS, if you successfully logged into AWS instance.

  • Gitlab has already well documented all the steps to install Gitlab Server on Ubuntu. You can follow from here
  • First of all update and install all dependencies for Gitlab Server
    • sudo apt-get update
      sudo apt-get install -y curl openssh-server ca-certificates
  • You can install Postfix to send notification mails, if you want to go with some other solution, you can skip this step.
    • sudo apt-get install -y postfix
    • During Postfix installation a configuration screen may appear. Select ‘Internet Site’ and press enter. Use your server’s external DNS for ‘mail name’ and press enter. If additional screens appear, continue to press enter to accept the defaults.
  • Add the GitLab package repository and install the package
    • curl | sudo bash
  • Next, install the GitLab package. Change `` to the URL at which you want to access your GitLab instance. Installation will automatically configure and start GitLab at that URL. HTTPS requires additional configuration after installation.
    • sudo EXTERNAL_URL="" apt-get install gitlab-ee


  • Browse to the hostname and login
  • Set up your communication preferences
    • Visit our email subscription preference center to let us know when to communicate with you. We have an explicit email opt-in policy so you have complete control over what and how often we send you emails.Twice a month, we send out the GitLab news you need to know, including new features, integrations, docs, and behind the scenes stories from our dev teams. For critical security updates related to bugs and system performance, sign up for our dedicated security newsletter.
Install own Gitlab Server on AWS (Ubuntu) instance
Tagged on:             

13 thoughts on “Install own Gitlab Server on AWS (Ubuntu) instance

  • November 16, 2019 at 2:29 pm

    I think other website proprietors should take this web site as an model, very clean and great user genial style and design, as well as the content. You are an expert in this topic!

  • November 6, 2019 at 6:18 pm

    I think this site has some really great information for everyone : D.

  • October 8, 2019 at 11:18 pm

    I just could not depart your web site prior to suggesting that I really enjoyed the standard information a person provide for your visitors? Is gonna be back often to check up on new posts

  • October 7, 2019 at 6:13 pm

    Thank you for helping out, superb info. “Hope is the denial of reality.” by Margaret Weis.

  • September 26, 2019 at 4:03 am

    I’m impressed, I need to say. Actually rarely do I encounter a blog that’s both educative and entertaining, and let me let you know, you could have hit the nail on the head. Your concept is outstanding; the problem is something that not enough individuals are speaking intelligently about. I am very blissful that I stumbled throughout this in my seek for something relating to this.

  • September 16, 2019 at 4:59 am

    Great line up. We will be linking to this great article on our site. Keep up the good writing.

  • August 25, 2019 at 4:59 am

    I’d have to examine with you here. Which is not one thing I usually do! I take pleasure in reading a post that may make folks think. Additionally, thanks for permitting me to comment!

  • May 29, 2019 at 8:04 am

    Thank you for your entire work on this website. My mum enjoys working on internet research and it is easy to understand why. My spouse and i learn all of the compelling medium you present sensible tips and hints by means of this website and even improve contribution from some other people about this situation while my simple princess is discovering a whole lot. Take pleasure in the remaining portion of the year. You’re the one carrying out a pretty cool job.

  • May 19, 2019 at 2:14 pm

    Hi, Neat post. There’s a problem with your web site in internet explorer, would test this… IE still is the market leader and a large portion of people will miss your fantastic writing due to this problem.

  • May 15, 2019 at 1:33 pm

    you’ve an excellent weblog here! would you like to make some invite posts on my blog?

Comments are closed.

Show Buttons
Hide Buttons