Terraform Repositories

Terraform Repositories

Terraform is an infrastructure-as-code (IaC) tool that builds, changes, and versions Cloud and On-Prem resources. For more information, see Terraform documentation.

Nexus Repository provides proxy, hosted (including GPG-signed provider binaries) and group repository support for Terraform modules and providers. This support is available in both Community Edition and Pro. Community Edition uses an H2 database, and Pro uses PostgreSQL. You can publish and retrieve Terraform modules using the Terraform CLI.

Getting Started

Explore the following topics to know how to configure and use Terraform with Nexus.

  1. Nexus for Terraform
  2. Create a Terraform Repository
  3. Configure Terraform with Nexus
  4. Terraform CLI Usage

Nexus for Terraform

Asset Classification

Nexus Repository classifies Terraform content into two types. This is done to apply right validation, indexing and processing rules.

Nexus repository classifies Terraform assets using path patterns.

Path-based detection is complemented by extension and location checks. The .zip file under a /modules/ directory is classified as Module and the .zip file under a /providers/ directory is classified as Provider.

If an item cannot be classified confidently, the system surfaces a warning or an error to protect repository integrity.

Capabilities

Proxy Capabilities

Hosted Capabilities

New in 3.89

Group Capabilities

New in 3.90