Skip to content
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

Compatibility Issue with Terraform v0.12.0 #59

Closed
edward8799 opened this issue May 28, 2019 · 19 comments
Closed

Compatibility Issue with Terraform v0.12.0 #59

edward8799 opened this issue May 28, 2019 · 19 comments

Comments

@edward8799
Copy link

Once I upgrade Terraform version to v0.12.0(provider.aws v2.10.0) and "terraform apply" to update state files, then state files disappear in the main dashboard page. Terraborad still can detect that those state files are v0.12.0 but won't display resources within the files.
Could someone suggest, please?

@dimisjim
Copy link

@raphink Any plans to support 0.12?

@raphink
Copy link
Contributor

raphink commented Jul 16, 2019

@dimisjim Yes, this will probably go through terradb, when we find the time to work on it 😄

@Erictsu1947
Copy link

any update on this issue?

thanks!

@raphink
Copy link
Contributor

raphink commented Aug 27, 2019

I haven't had time to work on it yet. If someone has pointers as to what changed in v0.12 that requires the update, that would be great!

@raphink
Copy link
Contributor

raphink commented Aug 27, 2019

Oh I see, resources are now directly at the root of the state file it seems, instead of being inside modules.

@Erictsu1947
Copy link

I haven't had time to work on it yet. If someone has pointers as to what changed in v0.12 that requires the update, that would be great!

hashicorp/terraform#18223

terraform on v0.12 change the state struct.

https://github.com/hashicorp/terraform/releases/tag/v0.12.0

official recommends to use terraform show -json instead of reading the content of state.

I will try to create a new pr on this, use parsing terraform show output

@raphink
Copy link
Contributor

raphink commented Aug 27, 2019

@Erictsu1947 I'm working on refactoring it using states/statefile instead of terraform/state. See master...raphink:012

Current status: fighting with go-cty to type the attributes properly…

@raphink
Copy link
Contributor

raphink commented Aug 28, 2019

I've opened a PR at #62, which is still WIP, but you're welcome to test.

@fivehorizons
Copy link

fivehorizons commented Sep 3, 2019

I've opened a PR at #62, which is still WIP, but you're welcome to test.

Does your fork require me to do docker-compose to build the image? Do you have the image on dockerhub that I could grab? @raphink

@fivehorizons
Copy link

fivehorizons commented Sep 3, 2019

I've opened a PR at #62, which is still WIP, but you're welcome to test.

Attempted to grab your repo go get. Im getting some config.go errors associated with Sirupsen being changed to lowercase. Your config.go does not reference it...

/root/go/src/github.com/camptocamp/terraboard/config/config.go:9:2: case-insensitive import collision: "github.com/sirupsen/logrus" and "github.com/Sirupsen/logrus"
@raphink

@lucioveloso
Copy link

Awesome @raphink ! I created an image with your branch code and it worked. However, it's good to know that it just works with a new database. Using the previous database that already tried to load state from 0.12 does not work.

@fivehorizons
Copy link

@lucioveloso would you mind sharing the image? Im dealing with corp firewall blocks on get pulls.

@lucioveloso
Copy link

I think that it's missing just the Activity column.

image

@raphink
Copy link
Contributor

raphink commented Sep 10, 2019

Thanks for testing @fivehorizons and @lucioveloso (and sorry for the my slow response). I'll check your comments soon (not today though I'm afraid).

@lucioveloso
Copy link

@fivehorizons you can try to use lucioveloso/terraboard012:latest.

@fivehorizons
Copy link

This is working great so far. Up to terraform 0.12.7. Seems the version included or downloaded needs to be replaced. What is the easiest way to update the terraform binary to match latest version?

@dimisjim
Copy link

@lucioveloso It also detects state versions up to 0.12.6 for me : (

@fivehorizons
Copy link

fivehorizons commented Oct 2, 2019

@dimisjim @lucioveloso just need to change the go.mod and change the terraform line to the following.

github.com/hashicorp/terraform v0.12.9

and then rebuild the image so it downloads new bits

@raphink raphink closed this as completed Oct 24, 2019
@raphink
Copy link
Contributor

raphink commented Oct 24, 2019

I released v0.15.0 with support for Terraform 0.12

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

No branches or pull requests

6 participants