An open API service indexing awesome lists of open source software.

https://github.com/joonvena/tfdeb

Simple lightweight tool to check provider updates for Terraform
https://github.com/joonvena/tfdeb

dependency-manager gitlab terraform

Last synced: about 2 months ago
JSON representation

Simple lightweight tool to check provider updates for Terraform

Awesome Lists containing this project

README

          

# tfdeb
![ci](https://github.com/joonvena/tfdeb/actions/workflows/ci.yml/badge.svg)

Simple updater for your Terraform versions.tf files. Currently only works with Gitlab.

## Variables

| Variable | Description | Default |
| --------------------- | --------------------------------------------------------- |------------------------------------|
| TF_REGISTRY_BASE_URL | Base url where to fetch registry information | "https://registry.terraform.io/v1" |
| TF_VERSIONS_FILE_PATH | Path to versions.tf file in repository | "versions.tf" |
| GITLAB_URL | Gitlab instance url | "https://gitlab.com" |
| GITLAB_PROJECT | Path to project eg. / | "" |
| GITLAB_TOKEN | Token that has full access to the project | "" |
| GITHUB_TOKEN | Token with read access to the public repositories | "" |
| BRANCH | Branches you want to update | "master" |

## Setup

Repository contains example .gitlab-ci.yml file to get started. Only thing you need to do is to create repository in Gitlab that contains the .gitlab-ci.yml file and create [Pipeline Schedule](https://docs.gitlab.com/ee/ci/pipelines/schedules.html#configuring-pipeline-schedules) and give variables to the job according to the table above.