SonarQube Code Quality Platform - Ready-to-Run

AWS Developer Tools

SonarQube, the open source platform for continuous code quality and static analysis, preconfigured and ready to analyse your first project.

Base
Hardened build
minimal ports, security patches applied at build time
Access
Unique credentials
generated on first boot, readable only by root
Verified
Boots working
services pass a health gate before release
Support
24/7, 365 days
by email and live chat, 24 hour response SLA

Overview

SonarQube is a code quality and static application security testing platform. It analyses source code for bugs, vulnerabilities, security hotspots and code smells across many languages, enforces a pass or fail Quality Gate on every analysis, and tracks issues, measures and trends on a web dashboard.

Why the cloudimg image

SonarQube is preinstalled on OpenJDK 17 with a local PostgreSQL database and an nginx reverse proxy, and the Elasticsearch kernel requirements are already applied. A fresh PostgreSQL password and a fresh administrator password are generated on first boot and stored in a root only file, the default admin login is disabled, and the application data, search index and database live on a dedicated volume. 24/7 cloudimg support covers CI integration, Quality Gate configuration and performance tuning.

Common uses

  • Code quality gate in CI pipelines
  • Static application security testing
  • Shared team code quality dashboard

Key features

  • SonarQube, the open source code-quality and static-analysis (SAST) platform, preinstalled with PostgreSQL, OpenJDK 17 and nginx, with the Elasticsearch kernel requirements applied, ready to use with no manual setup
  • Secure by default: a fresh PostgreSQL password and a fresh administrator password are generated for every instance on first boot and stored in a root only file, and the default admin login is disabled
  • 24/7 technical support from cloudimg for deployment, upgrades, CI integration, Quality Gate configuration, database administration and performance tuning

See it running

Real screenshots taken while testing this image against its deployment guide.

SonarQube Code Quality Platform - Ready-to-Run screenshot 1 SonarQube Code Quality Platform - Ready-to-Run screenshot 2 SonarQube Code Quality Platform - Ready-to-Run screenshot 3 SonarQube Code Quality Platform - Ready-to-Run screenshot 4

Description

This is a repackaged open source software product wherein additional charges apply for cloudimg support services.

## SonarQube Code Quality Platform - Production-Ready on AWS

SonarQube is the widely adopted open source platform for continuous code quality and static application security testing (SAST). This AMI delivers SonarQube fully installed and configured so your team has a complete, private code-analysis server running within minutes of launch - no manual database setup, no kernel tuning, and no shared credentials.

The edition shipped is the free SonarQube Community Build (LGPL-3.0). The Developer, Enterprise and Data Center editions are separate commercial products and are not included.

## Why Choose This AMI Over a Manual Install or Docker Compose

A fresh SonarQube installation typically requires provisioning a database, tuning Elasticsearch kernel parameters, creating a service user, and wiring up a reverse proxy - a process that commonly takes several hours even for experienced engineers. This image eliminates every manual step. Launch the instance, retrieve your unique administrator password, and start analysing projects immediately.

Compared to a Docker Compose deployment, this AMI provides persistent, production-grade PostgreSQL storage (not the unsupported embedded H2 database), pre-applied kernel tuning that survives reboots, and a dedicated non-root service user - all validated and tested as a single unit. The application data, the embedded Elasticsearch index and the PostgreSQL datadir all reside on a dedicated, independently resizable storage volume, so you can scale storage without rebuilding the instance.

## Application Stack

SonarQube runs on OpenJDK 17 as a dedicated non-root service, backed by a local PostgreSQL database. The SonarQube web interface binds to loopback and is fronted by nginx on port 80, which also serves an unauthenticated health endpoint. The Elasticsearch kernel and ulimit requirements are applied and persisted across reboots.

## Secure By Default - No Shared Credentials

Unlike many marketplace AMIs that ship with default or shared passwords, this image generates unique credentials on every launch. On first boot a one-shot service creates:

  • A fresh PostgreSQL role password
  • A fresh administrator password, rotating the default admin account

All credentials are unique to that instance and written to a root-only file. The default admin/admin login does not work on the running instance. No shared or default credentials ship in the image.

## Key Features

  • Static analysis for many languages - bugs, code smells and vulnerabilities
  • Quality Gates - enforce a pass/fail standard on every analysis
  • Security hotspots and SAST - surface injection, XSS and other risks
  • Pull-request and branch decoration ready for CI integration
  • Issue tracking with severities, ownership and history
  • Web dashboard for projects, measures and trends
  • Extensible via the plugin marketplace and a full web API

## Use Case: Engineering Teams Adding a Quality Gate to CI

Development teams who want to catch bugs and security vulnerabilities before code merges can point their CI pipeline (GitHub Actions, GitLab CI, Jenkins) at this SonarQube server. Every pull request is analysed against a configurable Quality Gate, and results are visible on the web dashboard. Because SonarQube runs inside your own AWS account, source code never leaves your network - ideal for teams with data residency requirements or compliance obligations in regulated industries.

## Additional Use Cases

  • Self-hosted alternative to SaaS code-analysis tools where source code must remain in your VPC
  • Security and code-quality auditing of an existing codebase before a release or acquisition
  • A shared quality dashboard across multiple engineering teams

## Getting Started

1. Launch the AMI in your VPC with ports 80/443 and 22 open in your security group

2. Wait approximately 60 seconds for first-boot credential generation to complete

3. SSH into the instance and retrieve the admin password from the root-only credentials file

4. Browse to the instance's public IP or DNS address

5. Sign in as admin with that password and create your first project

For guided deployment assistance, HTTPS certificate setup, or CI integration help, contact cloudimg support to schedule a free walkthrough session.

Related technologies

sonarqubecode qualitystatic analysissastcode reviewdeveloper toolsopen sourcecloudimg