Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using previous versions of Terraform no longer works #4597

Open
neefrehman opened this issue May 23, 2024 · 0 comments
Open

Using previous versions of Terraform no longer works #4597

neefrehman opened this issue May 23, 2024 · 0 comments
Labels
bug Something isn't working Stale

Comments

@neefrehman
Copy link

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

Updating Atlantis has just broken our usage of Terraform due to non-supported versions, making us need to manually upgrade to the latest "default" version (1.8.3).

Usually our updates of Atlantis work fine if we update our terraform version slightly later, due to the multiple supported versions stated in the docs (via Terraform config, in our case). But, after our update to 0.28.0 we noticed that subsequent calls to atlantis were failing due to version support problems.

After some searching, I noticed that the logic around AVAILABLE_TERRAFORM_VERSIONS was removed in #4341, and so potentially that change is related to this issue.

As a separate note, one issue that made version selection slightly more confusing in our case, is that the supported/default Terraform version was not clearly signposted in the release notes. I initially migrated to 1.7.2 after seeing #4203, while skipping past #4419 due to the commit being considered a (chore) change. It would be helpful to standardise the label for version bumps, or signpost them in other ways.

Reproduction Steps

Try to use Atlantis with Terraform's configuration set to 1.7.2

Logs

Environment details

  • Atlantis version: 0.28.0
  • Deployment method: helm

Atlantis server-side config file:

      repos:
        - id: "/.*/"
          workflow: terragrunt
          allowed_overrides: [workflow, apply_requirements, plan_requirements]
          apply_requirements: [approved, mergeable]
          pre_workflow_hooks:
            - run: terragrunt-atlantis-config generate --output atlantis.yaml --autoplan --automerge --create-workspace --parallel --filter terraform
      workflows:
        terragrunt:
          plan:
            steps:
            - env:
                name: TERRAGRUNT_TFPATH
                command: 'echo "terraform${ATLANTIS_TERRAFORM_VERSION}"'
            - run: terragrunt plan --terragrunt-log-level error -no-color -out=$PLANFILE
            - run: terragrunt show -json $PLANFILE > $SHOWFILE
          apply:
            steps:
            - env:
                name: TERRAGRUNT_TFPATH
                command: 'echo "terraform${ATLANTIS_TERRAFORM_VERSION}"'
            - run: terragrunt apply -no-color $PLANFILE
@neefrehman neefrehman added the bug Something isn't working label May 23, 2024
@neefrehman neefrehman changed the title Using previous versions of Terraform causes errors Using previous versions of Terraform no longer working May 26, 2024
@neefrehman neefrehman changed the title Using previous versions of Terraform no longer working Using previous versions of Terraform no longer works Jun 27, 2024
@dosubot dosubot bot added the Stale label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

1 participant