Replies: 1 comment 1 reply
-
Hey @marverix! I'm here to help you with any bugs, questions, or contributions. Let's get to the bottom of this together. I found a similar open issue regarding workflow-level To set environment variables globally in Atlantis for each Terraform execution, you can use pre-workflow hooks. This allows you to define environment variables that will be available to all steps in the workflow. Here's an example configuration: repos:
- id: /.*/
pre_workflow_hooks:
- run: |
export GITHUB_OWNER="your_value"
echo "Environment variable GITHUB_OWNER set"
description: Setting GITHUB_OWNER environment variable
shell: bash
shellArgs: -cv This setup will ensure that the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have deployed Atlantis via K8s. Works fine. I have the issue with GitHub provider tho. Because of a bug, for some resources it's required to set env (not tf variable!)
GITHUB_OWNER
. I know that in Atlantis I can do it via workflow, but it's a bit tedious. Is there a possibility to tell Atlantis to pass the environment variable (again - not TF_VAR_ !) to each terraform/tofu execution?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions