terraform-landscape icon indicating copy to clipboard operation
terraform-landscape copied to clipboard

Support Terraform 0.12.x

Open inductor opened this issue 5 years ago • 18 comments

The latest released version doesn't seem to work well with Terraform 0.12.x

inductor avatar Jun 11 '19 07:06 inductor

What benefit do you see in landscape for 012? The plan is so much more readable that I no longer see a need for it

-- Fernando Miguel

On Tue, 11 Jun 2019, 08:18 Kohei Ota, [email protected] wrote:

The latest released version doesn't seem to work well with Terraform 0.12.x

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/coinbase/terraform-landscape/issues/101?email_source=notifications&email_token=AABJDLVNIGYZAPLVDPQ6KGDPZ5GTBA5CNFSM4HW3HYW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYXNGHA, or mute the thread https://github.com/notifications/unsubscribe-auth/AABJDLQD4FTJ7TKAZOH5Y7DPZ5GTBANCNFSM4HW3HYWQ .

FernandoMiguel avatar Jun 11 '19 08:06 FernandoMiguel

It's true the 012 plan is much more readable but way too verbose. However Landscape is doing a great job of just output what is actually needed in most case. I have in mind the infinite "refreshing state".

remipichon avatar Jun 12 '19 10:06 remipichon

I've been using landscape as a "simpler-terraform-plan-result" tool. as @remipichon said even on 0.12 it is still kind of annoying to see the bunch of "refreshing state" messages and would just like to see the diff from the current state.

inductor avatar Jun 12 '19 23:06 inductor

@inductor you can easily "hide" the "refreshing state" with terraform plan | grep -v "Refreshing state...". However Landscape was doing more than just hiding those logs, it was doing a great deal of just showing the actual diff and not the whole +/-/unchanged ressources attributes.

remipichon avatar Jun 13 '19 09:06 remipichon

Completely agree with @remipichon . Terraform 0.12 is way verbose showing things that will remain the same with apply.

nunofernandes avatar Jun 24 '19 14:06 nunofernandes

Is this gonna happen or not? :P

inductor avatar Jun 25 '19 01:06 inductor

We would welcome a well-tested pull request that preserves functionality for users who are still on Terraform 0.11.x. Thanks!

sds avatar Jun 26 '19 05:06 sds

The v0.12 plan is definitely more readable, but I would agree with @remipichon that landscape does a better job of showing the actual diffs. It would be great if it could support v0.12!

neon-sombrero avatar Jul 02 '19 08:07 neon-sombrero

Landscape is still useful for diffing large blocks of text. For example when using the helm provider, you can pass in a yaml file. Landscape will pretty format it and show the relevant diff, while terraform 0.12 does not do that and that makes it difficult to see what changed.

servo1x avatar Jul 26 '19 10:07 servo1x

an improvement would be to add color to the entire element being created, destroy, or modified, instead of just the -/+/~

jasonmalstrom avatar Aug 01 '19 20:08 jasonmalstrom

Terraform landscape output was really great and definitively more readable with colors and diff-like output. I would love to be able to use it for Terraform 0.12.x 👍

sbz avatar Aug 22 '19 15:08 sbz

Same

eredi93 avatar Aug 26 '19 15:08 eredi93

For things like ECS task definitions where you have many tasks in a single file ? That would be a good one :)

james-gonzalez avatar Sep 04 '19 14:09 james-gonzalez

for jsonencoded maps for ECS task defs in 0.12 is not showing the changes, but the replacement of the whole json :( it'd be nice to use the tool for things like that

davidgereb avatar Sep 16 '19 11:09 davidgereb

Would like this feature also.

lewisstevens1 avatar Nov 12 '19 10:11 lewisstevens1

I, too, would love to see this.

laxin84 avatar Dec 04 '19 20:12 laxin84

+1

sasq31 avatar Dec 13 '19 13:12 sasq31

I've locked this issue to prevent further "+1" comments that aren't helpful. Would welcome a pull request adding support for the 0.12 output syntax!

sds avatar Dec 18 '19 21:12 sds