Skip to content

Stop using deprecated template_file (use templatefile instead)#19

Open
npwolf wants to merge 6 commits into
squareops:mainfrom
npwolf:main
Open

Stop using deprecated template_file (use templatefile instead)#19
npwolf wants to merge 6 commits into
squareops:mainfrom
npwolf:main

Conversation

@npwolf
Copy link
Copy Markdown

@npwolf npwolf commented Dec 19, 2023

When running on my M1 Mac, I was getting the following error:

│ 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.
│
│ Provider releases are separate from Terraform CLI releases, so not all providers are available for all platforms. Other versions of
│ this provider may have different platforms supported.

This PR stops the error by moving away from the deprecated template_file to templatefile.

Comment thread modules/vpn/main.tf Outdated
associate_public_ip_address = true
vpc_security_group_ids = [module.security_group_vpn.security_group_id]
user_data = join("", data.template_file.pritunl[*].rendered)
user_data = templatefile("${path.module}/scripts/pritunl-vpn.sh")
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really sure why template_file or templatefile is actually needed. There is nothing being replaced in this file from what I can see.

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