runatlantis/atlantis

Adding a TFE token crashloops the image

Closed this issue ยท 2 comments

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 I add

environment:
    ATLANTIS_TFE_TOKEN: myTfeToken

To my helm values file, the app starts crashlooping with

Error: initializing server: initializing terraform: writing generated .terraformrc file with TFE token to /run/sshd/.terraformrc: open /run/sshd/.terraformrc: no such file or directory

Reproduction Steps

  1. use helm chart 5.4.4
  2. add a tfe token
  3. deploy chart
  4. see it crash loop

huh weird, removing it now causes the following

Error: initializing server: could not write credentials: Writing ~/.git-credentials file: writing generated .git-credentials file with user, token and hostname to /run/sshd/.git-credentials: open /run/sshd/.git-credentials: no such file or directory

wait nvm, this is because of the debian image: #4247