-
Notifications
You must be signed in to change notification settings - Fork 210
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
Path from Terraform 0.13 #140
Conversation
This was all I needed to overcome terraform init failing
Thank you for your contribution. I've just checked and your commit doesn't appear to be signed-off. That's something we need before your Pull Request can be merged. Please see our contributing guide. |
This terraform is for v0.12.0
Happy to update the files, but can you confirm that the changes will work with Terraform v0.12.0 still? |
cc @jsiebens |
For me, running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change breaks Terraform v0.12.0
alex@am1 bootstrap % /Users/alex/.arkade/bin/terraform version
Terraform v0.12.0
+ provider.digitalocean v2.3.0
+ provider.local v2.0.0
+ provider.random v3.0.0
+ provider.template v2.2.0
Your version of Terraform is out of date! The latest version
is 0.14.3. You can update by downloading from www.terraform.io/downloads.html
alex@am1 bootstrap % /Users/alex/.arkade/bin/terraform init
There are some problems with the configuration, described below.
The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.
Error: Invalid version constraint
on main.tf line 5, in terraform:
5: digitalocean = {
6: source = "digitalocean/digitalocean"
7: version = "2.3.0"
8: }
A string value is required for digitalocean.
alex@am1 bootstrap %
You'll need to add the following to make it compatible with both versions. See more here: v0.12-Compatible Provider Requirements
|
It still fails with that @alexellis, in any case pinning to terraform 0.14 might be the safest path forward. I've raised this more as documentation of a thing I found. I'll close now. Feel free to experiment more. |
It didn't fail for me on 0.12.0 and when I upgrade to 0.13.0 it worked OK. Can you confirm the error you got with 0.13.0 with my alteration? |
On Terraform traceback for TF 0.13.5 - green (no state, no .terraform folder)
traceback for TF 0.14.4 - green (no state, no .terraform folder)
On 0.13 I can run Honestly, telling people to use This might need more looking into, maybe it's fine and everyone will somehow know to get an older 2019 version of Terraform. I'm definitely not the target market for this. I found if the terraform is used to provision DNS it always hard-codes to faasd (similar micro-fix). |
@jsiebens PTAL? |
This was all I needed to overcome terraform init failing
Description
Motivation and Context
Affects #67 & #77
How Has This Been Tested?
By running terraform init and it not failing with
Types of changes
Checklist:
Commits:
git commit -s
for the Developer Certificate of Origin (DCO)Code:
Docs: