Write secure, reliable Terraform
Static analysis for Terraform IaC
Use static code analysis to surface Terraform issues—misconfigurations, security risks, and maintainability concerns—before they reach production. Sonar delivers fast, actionable feedback in your workflow so you can ship infrastructure changes with confidence.

Own the code security of your Terraform
The Sonar SAST engine detects vulnerabilities so you're building on a solid foundation
Public access
Detect if your code is granting public access to security-sensitive resources
Permissions
Discover if you’ve granted permissions that are typically out-of-scope in production
Encryption
Ensure adequate encryption protocols for data at-rest and in-transit
Traceability
Prevent inadvertent disabling or modifying of best-practice traceability mechanisms
Support for your cloud provider of choice
SonarQube code analysis finds issues while you focus on the work
It all comes from a powerful static analysis engine that we constantly refine. SonarQube Server and Cloud employ advanced rules along with smart, exclusive static code analysis techniques to find the trickiest, most elusive issues, code smells, and security vulnerabilities.

Precise static code analysis
Deep static analysis of your code through symbolic execution, path sensitive analysis & cross-function/cross file taint analysis.
Fast issue resolution
Issue contextualization with secondary locations highlighted and clear remediation guidance helps you understand and construct a fix.
Minimal distractions
Automatic pull request analysis with results displayed in the comments of your favorite DevOps platform so you stay in the zone.
Produce secure, reliable and maintainable software
From first commit to deploy, Sonar unifies code quality and security, accelerating fixes and preventing issues from reaching production with in‑IDE feedback, PR decoration, and pipeline checks.
Terraform in your IDE
SonarQube for IDE in your IDE is your first line of defense for keeping the code you write today clean and safe. Issues are raised in-line with clear rule descriptions and guidance.
With SonarQube for IDE, the impact is immediate and no configuration is required. You learn from the real-time feedback provided and quickly resolve issue with contextual guidance and automatic Quick Fixes!
SonarQube for IDE is available from your IDE marketplace:
VS Code | JetBrains IntelliJ

Terraform in your workflow
Automatically analyze Pull Requests and feature branches with the results decorated in the DevOps platform of your choice.
Your team can share rule configurations and exclusions across projects and coalesce on a shared definition of excellence. The project Quality Gate is visible to everyone and the releasabity status is clear.
SonarQube Cloud tightly integrates with these popular platforms:
GitHub | Bitbucket | Azure DevOps | GitLab

Reduce technical debt with every release
Identify issues early for quick, accurate fixes, allowing your team to maintain momentum and continuously improve code health.
Sonar empowers developers
Developers can write high-quality, secure code with Sonar. It flags new code and pull requests in your workflow, giving a clear go/no-go for merges and quick issue resolution. Fix problems directly in your workflow as you write code, ensuring changes are solid before production.
Quality Gates show your project Releasability
Sonar Quality Gates immediately indicate if commits meet standards and projects are releasable. They align teams around a shared vision of quality, ensuring everyone knows and meets the standard of excellence across the codebase.