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

Terraform 1.4+ issues #3201

Open
nitrocode opened this issue Mar 10, 2023 · 0 comments
Open

Terraform 1.4+ issues #3201

nitrocode opened this issue Mar 10, 2023 · 0 comments
Labels
docs Documentation Stale

Comments

@nitrocode
Copy link
Member

nitrocode commented Mar 10, 2023

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.

The new terraform 1.4.x has a few problems that users may run into

If 1.4.x is desired and committing the lockfile is desired then do the following

terraform providers lock \
  -platform=linux_arm64 \ 
  -platform=linux_amd64 \
  -platform=darwin_amd64 \
  -platform=darwin_arm64

If 1.4.x is desired but locking is not desired, then set the env var

TF_PLUGIN_CACHE_MAY_BREAK_DEPENDENCY_LOCK_FILE=true

If 1.3.x pinning is desired, do all of the following

  1. set flag ATLANTIS_DEFAULT_TF_VERSION=1.3.9

    • This will only apply to dirs that do NOT have a required_version set in hcl
  2. If using required_version then also set to ~> 1.3.0 per dir

    # versions.tf
    terraform {
      required_version = "~> 1.3.0"
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation Stale
Projects
None yet
Development

No branches or pull requests

1 participant