fix (proposed): set the default tfenv to linux for EC2 instances, local dev, etc. #882
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm not sure if this is the smartest change, but I think it could be a first step. For a lot of us with M1 macs, we run into incompatibilities where our tfenv architecuture is set to darwin_arm64 instead of the linux one. Most of our EC2 Instances run in amd though--we don't want to change the default to the newest Macbook default.
For example, I'd get this error a lot when I run terraform locally:
I couldn't get rid of it until I modified the conditions of the tf_env install--I didn't care about getting the M1 Macbook version so I looked into ways to convince tf_env I'm using linux_amd64 architecture.
This change exports and sets a TFENV architecture to Linux by default--I have not tested whether we can override it back to arm64 or not.