Link Search Menu Expand Document

Config

Overview

Terragen generates terragen.yml to track all created/updated components and also project’s compatibility with future versions of terragen.

Definition

Sample metadata layout of terragen looks like:

version: 1.0.0
repo-group: github.com/nikhilsbhat
project-module: github.com/nikhilsbhat/terraform-provider-rancherk3d
provider: rancherk3d
provider-path: /Users/nikhil.bhat/my-opensource/terraform-provider-test
resources:
- cluster_create
- node_create
data-sources:
- cluster_list
importers:
- ""

More information on metadata layout:

Field Description
version Latest version of terragen used create/update the project.
repo-group Repo group used to generate scaffolds defaults to provider.
project-module Go mod used for the project.
provider Name of the provider for which this metadata is part of.
provider-path Absolute path of provider scaffold
resources List of resources for which scaffolds are generated
data-sources List of data-sources for which scaffolds are generated
importers List of importers for which scaffolds are generated

Above fields tends to update based on the version of terragen.