Created
July 14, 2022 12:31
-
-
Save soerenmartius/8ddccfacb4263284e34dce28f5e8895e to your computer and use it in GitHub Desktop.
Generate Terraform locals with Terramate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# File: /projects/locals.tm.hcl | |
# Export env and project_id to be referenced as local.project_id and local.env | |
# in main.tf and other Terraform files in each stack. | |
generate_hcl "_terramate_generated_locals" { | |
content { | |
locals { | |
env = global.env | |
project_id = global.project_id | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment