Replace deprecated template provider for Apple Silicon support#101
Open
tayontech wants to merge 2 commits into
Open
Replace deprecated template provider for Apple Silicon support#101tayontech wants to merge 2 commits into
tayontech wants to merge 2 commits into
Conversation
…tions The hashicorp/template provider does not support darwin_arm64 (Apple Silicon), causing terraform init to fail. Replace all data "template_file" blocks with locals using the built-in templatefile() and file() functions, which require no external provider.
b868d67 to
bc0a321
Compare
- Replace ${VAR::-5} with ${VAR%:*} for Bash 3.2 compatibility
- Use sed -i'' -e for macOS sed compatibility
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
data "template_file"blocks with built-intemplatefile()andfile()functions in both module-1 and module-2hashicorp/templateprovider, which does not have a package fordarwin_arm64Problem
Running
terraform initon Apple Silicon (M1/M2/M3) Macs fails with:Fix
The
hashicorp/templateprovider is deprecated. Terraform's built-intemplatefile()function andfile()function are drop-in replacements that require no external provider.Test plan
terraform initsucceeds on darwin_arm64terraform planproduces the same output as before