This message was deleted.
# atlantis-community
s
This message was deleted.
p
you need to setup a min version of terraform in your tf files
or define the version on the atlantis.yaml
o
But I have
Copy code
ATLANTIS_DEFAULT_TF_VERSION: "1.6.3"
p
that is the default for atlantis not for your tf workflow
you still need a required_version inside of TF
o
Hm… From what I see here I understand there is layered config https://www.runatlantis.io/docs/terraform-versions.html
And somewhat set in atlantis.yaml just takes precedence over defaults in Atlantis
I wouldn’t like to solve it using Terraform requirements (many code owners). What should I do to set Terraform version for all workflows (Terragrunt/atlantis-terragrunt-config)?
I have ATLANTIS_DEFAULT_TF_VERSION, but there is
DEFAULT_TERRAFORM_VERSION
in docs 🤔
p
you should always have
required_version
no matter what
that is pure TF requirement
then on Atlantis you should have terraform_version : x.x.x to the version you need
o
How could I check which module is the source of problem? Log message isn’t much informative?
allright
Copy code
{
  "level": "warn",
  "ts": "2024-01-25T18:24:21.242Z",
  "caller": "events/plan_command_runner.go:191",
  "msg": "unable to update commit status: POST <https://somegitlab.com/api/v4/projects/xxx/yyy/statuses/1d513a0d019425c7116e42507e35d11670e4f42e>: 400 {message: Cannot transition status via :run from :running (Reason(s): Status cannot transition via \"run\")}",
  "json": {
    "repo": "xxx/yyy",
    "pull": "304"
  },
  "stacktrace": "<http://github.com/runatlantis/atlantis/server/events.(*PlanCommandRunner).run|github.com/runatlantis/atlantis/server/events.(*PlanCommandRunner).run>\n\tgithub.com/runatlantis/atlantis/server/events/plan_command_runner.go:191\ngithub.com/runatlantis/atlantis/server/events.(*PlanCommandRunner).Run\n\tgithub.com/runatlantis/atlantis/server/events/plan_command_runner.go:306\ngithub.com/runatlantis/atlantis/server/events.(*DefaultCommandRunner).RunCommentCommand\n\tgithub.com/runatlantis/atlantis/server/events/command_runner.go:365"
}
Hm… Those errors about Terraform version always follow after error above