SonarQube on AWS - Getting Started

  • Home
  • /
  • SonarQube on AWS - Getting Started
SonarQube on AWS - Getting Started

SonarQube on AWS - Getting Started

Documentation 10 Sep 2022

This documentation is provided as a quick start guide to our AWS MarketPlace Clients.

Overview

SonarQube is an open-source platform for continuous inspection of code quality. It’s a tool that can perform automatic reviews with static analysis of code to detect bugs, coding standards violations, unit test coverage, code complexity, comments, etc.

Quality is important for any software product, and it’s becoming increasingly critical. This listing includes SonarQube on top of rock-solid Ubuntu 20.04, making it easy for you to start a Quality Analysis practice for your organisation in One-Click.

With over 29 programming languages supported by this platform today and growing fast, it makes sense to leverage SonarQube as your source for every code quality-related requirement you have in mind.

What are the benefits of using SonarQube?

Quality is important in software development, and ensuring the code meets a quality standard is essential to its growth. Using SonarQube, companies identify errors, bugs, and security issues in their code. Users can get reports on duplicated code, coding standards, unit tests etc. It also has a reporting module where you can find out about the number of security-related issues in your codebase. Other benefits include;

  • #1 Code Quality Analysis platform with great community support.
  • Very easy to use Web UI with point and click administration.
  • Multiple programming language support
  • Integrates easily with Github, Gitlab and other SCM tools.

Gettings started with SonarQube on AWS EC2

First, you will need to have an AWS account. If you don’t, you can register for a free AWS account here https://aws.amazon.com/resources/create-account/ . If you qualify, AWS might even extend you free credits to get started.

Once ready to go, access AWS MarketPlace to get started, or click here AWS MarketPlace.

Install On AWS with One-Click

Next…

Go through AWS options to launch an Amazon Elastic Compute Cloud (Amazon EC2) instance using our baked “SonarQube on AWS” image. We recommend the following specifications, you are welcome to try lower, especially if you are testing things. (Recommended: t2.medium or 2VCPU’s and 4GB RAM)

This infograpic will guide you through the rest of the process.

How-to Explainer

Finally…

Once your instance is launched, it will take about 5-10 minutes to bootstrap for the first time. When ready, you should be able to browse to SonarQube web-ui located at http://ip.address.of.instance:9000 for example, if your instance is on IP address 1.2.3.4, you should be able to access the web-ui by browsing to http://1.2.3.4:9000 The default username is “admin” and the password is the ID for your EC2 instance. e.g. i-0123456789

username: admin
password: EC2 instance ID (e.g. i-0123456789)

Shoud you need to, SSH is available as well. The credentials for that are;

username: ubuntu
password: use SSH-Key used during EC2 instance provision

Conclusion

SonarQube is a very powerful tool that can assist organisations uplift the quality of their products and code. In this guide, we showed you how to set up SonarQube on AWS using our custom-baked image in the AWS MarketPlace. We explained the benefits of using SonarQube and its features. We hope you are excited to use SonarQube in your projects.

Looking for Support?

We work with our clients to get their Cloud Automation journey right the first time. Our teams use only the best Open-Source and Proprietary tools on the market to deliver secure, robust and scalable cloud and On-Premises infrastructure for our clients. Our MarketPlace offerings extend this expertise to allow even more AWS clients enjoy our products with ease. To show our commitment to this, all our marketplace offerings come with 1hr free support to get you started. Shoot us an email: support [+] solvedevops.com.au

Disclaimer:

All product and company names are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them. This product contains the latest patched software from respective vendors, we do not, however, claim that all vulnerabilities have been addressed.

Frequently Asked Questions

Can I use SonarQube to discover and fix bugs in my codebase?

Yes, SonarQube can be used to uplift the quality of your code by helping your developers discover and fix bugs quicker. Apart from bug discovery, SonarQube can also be used for automated testing, code reviews, and more.

What are some best practices for using SonarQube in a production environment?

SonarQube is a powerful tool that can help you to analyze your codebase and identify potential issues. It also provides insights into how well your code is coded, which helps with the development process.

One of the best practices for using SonarQube in a production environment is to keep it up-to-date. This means queuing up new releases as soon as they are released so that you always have the latest features and bug fixes available. You should also use SonarQube’s performance analysis feature to find areas where your code may be slow or causing Issues. Finally, make sure to share findings with team members so that everyone can get started on identifying potential problems early on in the development cycle.

Using SonarQube saves time and money both down the road and during initial development projects.

Is there a license cost for using SonarQube on AWS?

There is no license cost for using SonarQube CE server on AWS. However, you will still incur costs for using the underlying AWS infrastructure and Marketplace fees.

All our Marketplace images come with 1 hr FREE Support to get you started. Contact us to get started.