/tf-registry

Implementation of the Terraform Module Registry

Primary LanguagePythonMIT LicenseMIT

tf-registry

Implementation of the Terraform Module Registry

Quick Start

Installation

Requirements

  • A database
    • PostgreSQL is recommended
  • Docker

Upgrading

Simply deploy the newer version of tf-registry.

Since database migrations are automatically run on startup it is recommended to upgrade one version at a time.

API Documentation

The API has a fully documented swagger spec. Simply visit /swagger/ui on your registry installation.

Development

Requirements

Setup

  1. Run make deps to setup the python environment
  2. Run make s3
    • This will spin up a Minio S3 docker container to store artifacts

Run

  1. Run make local
    • This will launch the python application with an SQLite database
  2. Navigate to http://127.0.0.1:8080/swagger/ui
  3. Before running terraform set the TERRAFORM_CONFIG environment variable to hack/.terraformrc
    • export TERRAFORM_CONFIG=$(pwd)/hack/.terraformrc

Cleanup

  1. Stop the python application
  2. Run make clean

TODO