When I run terraform plan
it shows a changed resource, which happens to be JSON data in an aws_s3_bucket_object
. But the JSON is long and it's difficult to see what changed. How can I display this as a diff?
https://github.com/coinbase/terraform-landscape can help with this.
gem install terraform_landscape
(may need sudo on macOS)terraform plan | landscape
This shows JSON changes as a diff. Here's an example from the github site:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With