Skip to content

Replace deprecated template provider for Apple Silicon support#101

Open
tayontech wants to merge 2 commits into
ine-labs:masterfrom
tayontech:fix/remove-template-provider
Open

Replace deprecated template provider for Apple Silicon support#101
tayontech wants to merge 2 commits into
ine-labs:masterfrom
tayontech:fix/remove-template-provider

Conversation

@tayontech

@tayontech tayontech commented Mar 20, 2026

Copy link
Copy Markdown

Summary

  • Replaced data "template_file" blocks with built-in templatefile() and file() functions in both module-1 and module-2
  • Removes the dependency on hashicorp/template provider, which does not have a package for darwin_arm64

Problem

Running terraform init on Apple Silicon (M1/M2/M3) Macs fails with:

Error: Incompatible provider version
Provider registry.terraform.io/hashicorp/template v2.2.0 does not have a package available for your current platform, darwin_arm64.

Fix

The hashicorp/template provider is deprecated. Terraform's built-in templatefile() function and file() function are drop-in replacements that require no external provider.

Test plan

  • terraform init succeeds on darwin_arm64
  • terraform plan produces the same output as before

…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.
@tayontech tayontech force-pushed the fix/remove-template-provider branch from b868d67 to bc0a321 Compare March 20, 2026 23:00
- Replace ${VAR::-5} with ${VAR%:*} for Bash 3.2 compatibility
- Use sed -i'' -e for macOS sed compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant