Skip to content

Atlantis does not set Env variables when output: hide in multienv #5318

Open
@hkobayash

Description

@hkobayash

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Overview of the Issue

When using the multienv command in a custom workflow, if hide is set for multienv.output, the environment variables will not be set.

Reproduction Steps

workflows:
  default:
    plan:
      steps:
      - multienv:
          command: echo TF_VAR_TEST1=test1
          output: show
      - multienv:
          command: echo TF_VAR_TEST2=test2
          output: hide
      - run: echo $TF_VAR_TEST1
      - run: echo $TF_VAR_TEST2

Logs

Ran Plan for project: test dir: test workspace: default

Dynamic environment variables added:
TF_VAR_TEST1

test1
  • 🔁 To plan this project again, comment:
    atlantis plan -p test

Environment details

  • Atlantis version: v0.33.0
  • Deployment method: ecs

Additional Context

https://www.runatlantis.io/docs/custom-workflows#multiple-environment-variables-multienv-command

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions