Write Clean Terraform

static code analysis tools for Terraform

Utilize static code analysis to find issues in Terraform such as bugs, code smells & security vulnerabilities. Use the Sonar language analyzer with hundreds of rules to evaluate your code and ensure the security, reliability and maintainability of your software.

Protect Your Infrastructure

build your Terraform projects with Clean Code

Your Terraform code should be versioned, have its own pipeline and it should be tested and secured. Sonar makes it easy to find and fix issues in your Terraform code.

REDUCE SECURITY RISK

own the code security of your Terraform

The Sonar SAST engine detects vulnerabilities so you're building on a solid foundation

See the Terraform rules

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

  • AWS
  • Google Cloud
  • Azure

SonarQube Server 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 employs advanced rules along with smart, exclusive static code analysis techniques to find the trickiest, most elusive issues, code smells, and security vulnerabilities.

Download SonarQube Server now

Precise static code analysis

Deep static analysis of your code through symbolic execution, path sensitive analysis & cross-function/cross file 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 decorated in your favorite DevOps platform so you stay in the zone.

The Best Way to Code Terraform Better

produce secure, reliable and maintainable software

Sonar brings Clean Code to where your code lives. Sonar is tightly integrated with your CI/CD workflow to feed you the right info at the right time and place.

For you

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

Explore SonarQube IDE
Sonar works in your Jetbrains, VS Code, Visual Studio and Eclipse IDE's
For your developer team

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

Try SonarQube Cloud for free
refactoring bits of code and quality checks are shown as an abstract of a developers environment.
Increase the Value of Your Software

reduce technical debt with Clean Code in each release

Sonar empowers developers to write Clean Code

As a developer, your priority is making sure the code you write today is high quality and secure. The Sonar user interface highlights the health of your new code (changed or added) so you’ll clearly know when your code is solid.

Learn more

Quality Gates show your project Releasability

Out of the box, the Sonar Quality Gate clearly signals whether your commits are clean and your projects are releasable. A quality gate coalesces the team around a consistent, shared vision of quality. Everyone knows the coding standard of excellence and whether it’s being met.

Learn more

we support your Terraform workflow

start cleaning your Terraform code now

Self-managedSaaS
  • Legal documentation
  • Trust center
  • Follow SonarSource on Twitter
  • Follow SonarSource on Linkedin

© 2008-2024 SonarSource SA. All rights reserved. SONAR, SONARSOURCE, SONARQUBE, and CLEAN AS YOU CODE are trademarks of SonarSource SA.