When I execute terramate generate in my local machine (macOS Ventura 13.6 (22G120))
The files are generated correctly
When I try to run terramate generate on Azure Pipelines using the Ubuntu 22.04 Runner
I receive the following errors:
Code generation report
Failures:
- /infrastructure/my-app-stacks/250-backend
error: /home/vsts/work/1/s/terramate.tm.hcl:32,14-38,6: lets eval: undefined let tenant
error: /home/vsts/work/1/s/terramate.tm.hcl:27,44-66: lets eval: let.active_tenant: eval expression: The given key does not identify an element in this collection value.
error: /home/vsts/work/1/s/terramate.tm.hcl:28,33-85: lets eval: undefined let active_tenant_aws_account
- /infrastructure/my-app-stacks/300-frontend
error: /home/vsts/work/1/s/terramate.tm.hcl:32,14-38,6: lets eval: undefined let tenant
error: /home/vsts/work/1/s/terramate.tm.hcl:27,44-66: lets eval: let.active_tenant: eval expression: The given key does not identify an element in this collection value.
error: /home/vsts/work/1/s/terramate.tm.hcl:28,33-85: lets eval: undefined let active_tenant_aws_account
Environment:
Works on:
OS: macOS
OS Version: macOS Ventura 13.6 (22G120)
Git Version: git version 2.39.3 (Apple Git-145)
Terramate Version: v0.8.1 (installed via Homebrew)
Doesn't work on:
OS: Ubuntu
OS Version: Ubuntu 22.04
Git Version: Git 2.43.2
Terramate Version: v0.8.1 (installed via Homebrew)
Additional context:
I can confirm all JSON files are present in the file system and the correct path in CI
I'm using terramate v0.8.1 installed via Linux Homebrew
Describe the bug
i have the following
terramate.tm.hcl
in the root of my git repository:Log Output
When I execute
terramate generate
in my local machine (macOS Ventura 13.6 (22G120))The files are generated correctly
When I try to run
terramate generate
on Azure Pipelines using the Ubuntu 22.04 RunnerI receive the following errors:
Environment:
Works on:
Doesn't work on:
Additional context:
I can confirm all JSON files are present in the file system and the correct path in CI
I'm using
terramate
v0.8.1 installed via Linux HomebrewI have tried to move the JSON to
globals
or using multiple
lets {}
:But it doesn't work on Ubuntu 22
Any guidance is welcome! Thank you