Skip to content

Naming conventions

When you set up your infrastructure, the templates generate several files. These files follow simple naming rules.

  • Files managed by templates always start with an underscore. The number of underscores depends on the layer. All template files also include gp.
  • gp stands for Golden Path.

Configuration layer

  • Prefix: Two underscores followed by "gp" (__gp)
  • Example: __gp_config.tf

A screen capture from GitHub showing the files on the config layer

Resource and module layer

  • Prefix: Single underscore followed by "gp" (_gp)
  • Example: _gp_iam.tf

A screen capture from GitHub showing files on the resource and module layer

Adding your own files

You can create two types of files in addition to the files you get from our templates

  • Override files (that override Golden Path files). Terraform overrides (guide) are used when you need to change behavior from the Golden Path templates. The guide explains how to name these files.
  • Normal Terraform files, that you create yourself. Typically to create features that Golden Path does not support yet. You do not need to use a prefix when creating these files.