Overview
This fully managed SonarQube solution delivers a production-ready code quality and security analysis platform on AWS, built on Ubuntu 24.04 LTS. Every instance is pre-configured with security best practices, optimized settings, and automated operations.
Why Choose Self-Hosted SonarQube?
Unlike SonarCloud, this AMI gives you full root and OS-level access. Configure custom quality profiles, security rules, plugin integrations, and database backends without per-user pricing or data residency concerns. Keep your source code analysis entirely within your infrastructure.
Key Features
Complete Code Quality Platform SonarQube pre-configured with quality profiles for 30+ programming languages. Detect bugs, code smells, security vulnerabilities, and technical debt across your codebase.
Automated Setup On first login, an interactive setup script configures SonarQube, sets up the database, and applies firewall rules - all within minutes.
Security Hardened UFW firewall pre-configured, HTTPS-ready, authentication enabled by default, and latest security patches applied.
CI/CD Integration Ready Integrate with Jenkins, GitLab CI, GitHub Actions, Azure DevOps, and Bitbucket Pipelines. Enforce quality gates before merging code.
Use Cases Continuous code quality inspection in CI/CD pipelines Security vulnerability detection (OWASP Top 10, CWE) Technical debt tracking and reduction Code review automation and quality gate enforcement Compliance-driven code analysis (MISRA, CERT) Multi-project portfolio quality management
Getting Started Launch the AMI from AWS Marketplace on your preferred instance type SSH into your instance and follow the interactive setup wizard Integrate SonarQube with your CI/CD pipeline and start analyzing code
Book a free setup consultation at https://cal.com/gaurav-pareek-perimattic/marketplace-setup-consultations or email us at aws-support@perimattic.com .
Support Managed and supported by Perimattic, a cloud infrastructure company with 13+ years of experience serving global clients. We offer free setup assistance, custom integrations, infrastructure consulting, and 24/7 support.
Highlights
- Self-Hosted Code Quality Platform: Full root access to configure quality profiles, security rules, and plugins for 30+ languages without per-user pricing or data residency concerns.
- CI/CD Integration Ready: Pre-configured for Jenkins, GitLab CI, GitHub Actions, and Azure DevOps. Enforce quality gates and catch vulnerabilities before merging code.
- 24/7 Expert Support by Perimattic: 13+ years of cloud infrastructure expertise with free setup assistance, pipeline integration, and dedicated support at aws-support@perimattic.com.
Details
Introducing multi-product solutions
You can now purchase comprehensive solutions tailored to use cases and industries.
Features and programs
Financing for AWS Marketplace purchases
Pricing
Dimension | Cost/hour |
|---|---|
t2.medium Recommended | $0.05 |
t2.large | $0.05 |
t2.xlarge | $0.05 |
t3.medium | $0.05 |
t3.large | $0.05 |
t3.xlarge | $0.05 |
m5.large | $0.05 |
m5.xlarge | $0.05 |
Vendor refund policy
For any questions or concerns, please contact: Perimattic.com Email: aws-support@perimattic.com
How can we make this page better?
Legal
Vendor terms and conditions
Content disclaimer
Delivery details
64-bit (x86) Amazon Machine Image (AMI)
Amazon Machine Image (AMI)
An AMI is a virtual image that provides the information required to launch an instance. Amazon EC2 (Elastic Compute Cloud) instances are virtual servers on which you can run your applications and workloads, offering varying combinations of CPU, memory, storage, and networking resources. You can launch as many instances from as many different AMIs as you need.
Version release notes
-
Added automated first-boot provisioning using failsafe.sh to guarantee complete and reliable SonarQube installation.
-
Implemented secure SonarQube setup with auto-generated admin credentials stored safely inside the .env file.
-
Added mandatory domain validation workflow with guided prompts during first boot.
-
Fully automated SSL certificate provisioning using Certbot with Apache/Nginx reverse proxy integration.
-
Enabled SonarQube Web Dashboard with secure HTTPS routing for code quality and vulnerability analysis.
-
Delivered Docker Compose-based deployment for consistent, reproducible production environments.
-
Configured persistent data volumes to ensure SonarQube project data, plugins, and logs remain intact across reboots.
-
Added auto-restart policies for SonarQube and database containers to improve reliability and uptime.
-
Enhanced DNS validation logic to prevent SSL certificate failures during domain mapping.
-
Integrated a self-healing installer that retries failed steps to guarantee successful provisioning even after interruptions.
Additional details
Usage instructions
1.Launch an Instance
From AWS Marketplace, select Continue to Subscribe, then Continue to Configuration, and launch the AMI into your preferred VPC and subnet.
2.Choose the Recommended Instance Type
Select t2.medium or larger for smooth SonarQube operation.
SonarQube and PostgreSQL require adequate CPU and RAM.
For CI/CD or teams of 5 or more developers, consider t3.medium or t3.large.
3.Configure Security Group
Allow inbound access on these ports:
22 - SSH access 80 - Required temporarily for SSL validation 443 - Secure HTTPS access to SonarQube
These ports are required for first-boot automation, certificate generation, and dashboard access.
4.Connect to the Instance
SSH into your server:
ssh -i <your-key.pem> ubuntu@<public-ip>
The automated first-boot setup will begin immediately after login.
5.First-Boot Setup (Interactive Guided Installation)
On first connection, an automated installer will:
Detect your public IP
Ask for your domain name for SonarQube
Validate DNS A-record mapping
Ask for admin email for SSL certificates
Generate secure SonarQube admin passwords
Save all credentials securely inside: /opt/app/.env
Configure Apache reverse proxy for HTTPS
Request and install a free Let's Encrypt SSL certificate
Deploy SonarQube and PostgreSQL using Docker Compose
Display your secure login URL and credentials upon completion
Setup is handled by: firstboot.sh, setup.sh, and failsafe.sh
6.DNS Configuration Required
Before or during setup, add this DNS A-record:
yourdomain.com -> <your-instance-public-IP>
The installer continues automatically once DNS is propagated.
7.Automatic SSL Setup
After DNS is verified:
A Let's Encrypt SSL certificate is issued
Apache is automatically configured for HTTPS
HTTP to HTTPS redirects are enabled
Secure dashboard access is activated
8.Start or Restart SonarQube Manually
cd /opt/app docker compose ps docker compose restart
Persistent Docker volumes ensure SonarQube data, logs, and plugins survive restarts.
9.Access the SonarQube Dashboard
Open in your browser:
https://<your-domain>
Credentials are displayed after installation and saved in:
/opt/app/.env /opt/app/admin_password.txt
Default username: admin
Password: Auto-generated during setup.
10.Retrieve Credentials Anytime
cat /opt/app/.env cat /opt/app/admin_password.txt
Both files store the admin password generated during first-boot provisioning. Thank you for subscribing. Your instance is ready to go!
Need Support or Customization? Whether you're facing setup issues or need custom features, Perimattic's expert team is here to help:
Email us: aws-support@perimattic.com WhatsApp: +91-92142 66896 Learn more: <www.perimattic.com >
We offer: Free setup assistance Custom development & integrations Infrastructure consulting Automation & AI solutions With 13+ years of experience serving global clients, we ensure your deployment runs smoothly and scales with your needs.
Let's build something great together!
Resources
Support
Vendor support
Support by Perimattic
Perimattic provides 24/7 support for all AWS Marketplace products. Our team has 13+ years of cloud infrastructure expertise serving global clients.
Contact Channels: Email: aws-support@perimattic.com WhatsApp: +91-92142 66896 Website: <www.perimattic.com >
What We Help With: Initial setup and configuration assistance (free) Troubleshooting connectivity, performance, and backup issues Custom development and integrations Infrastructure consulting and architecture review Migration planning from other solutions Automation solutions and scaling guidance
Instance Sizing Guidance: t2.medium or t3.medium: Development environments, small applications m5.large: Production workloads with moderate traffic m5.xlarge: High-traffic production deployments and larger datasets
For workload-specific sizing recommendations, contact our team for a free consultation.
Refunds and Issues: If you experience any issues or need to request a refund, contact us at aws-support@perimattic.com and we will respond promptly.
AWS infrastructure support
AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.