terraform-landscape
terraform-landscape copied to clipboard
`aws_ssm_maintenance_window_task` json parse error on `task_parameters.0.values.0` containing curly braces
Using landscape 0.3.0 and ruby 2.6.0
Without landscape tool
$ terraform plan -target module.systems_manager.aws_ssm_maintenance_window_task.window_s_install_patches
-/+ module.systems_manager.aws_ssm_maintenance_window_task.window_s_install_patches (new resource required)
...
task_parameters.0.values.#: "1" => "1"
task_parameters.0.values.0: "{{ssm:startServicesScript}}" => "{}" (forces new resource)
...
With landscape tool
$ terraform plan -target module.systems_manager.aws_ssm_maintenance_window_task.window_s_install_patches | landscape --trace
-/+ module.systems_manager.aws_ssm_maintenance_window_task.window_s_install_patches (new resource required)
id: "1193a0d5-6193-43ab-815c-f13f6eca9457" => "<computed>" (forces new resource)
task_parameters.0.values.0: Traceback (most recent call last):
25: from /Users/user/.rvm/gems/ruby-2.6.0/bin/ruby_executable_hooks:24:in `<main>'
24: from /Users/user/.rvm/gems/ruby-2.6.0/bin/ruby_executable_hooks:24:in `eval'
23: from /Users/user/.rvm/gems/ruby-2.6.0/bin/landscape:23:in `<main>'
22: from /Users/user/.rvm/gems/ruby-2.6.0/bin/landscape:23:in `load'
21: from /Users/user/.rvm/gems/ruby-2.6.0/gems/terraform_landscape-0.3.0/bin/landscape:7:in `<top (required)>'
20: from /Users/user/.rvm/gems/ruby-2.6.0/gems/terraform_landscape-0.3.0/lib/terraform_landscape/cli.rb:25:in `run'
19: from /Users/user/.rvm/gems/ruby-2.6.0/gems/commander-4.4.7/lib/commander/delegates.rb:15:in `run!'
18: from /Users/user/.rvm/gems/ruby-2.6.0/gems/commander-4.4.7/lib/commander/runner.rb:68:in `run!'
17: from /Users/user/.rvm/gems/ruby-2.6.0/gems/commander-4.4.7/lib/commander/runner.rb:446:in `run_active_command'
16: from /Users/user/.rvm/gems/ruby-2.6.0/gems/commander-4.4.7/lib/commander/command.rb:153:in `run'
15: from /Users/user/.rvm/gems/ruby-2.6.0/gems/commander-4.4.7/lib/commander/command.rb:182:in `call'
14: from /Users/user/.rvm/gems/ruby-2.6.0/gems/terraform_landscape-0.3.0/lib/terraform_landscape/cli.rb:34:in `block (2 levels) in define_commands'
13: from /Users/user/.rvm/gems/ruby-2.6.0/gems/terraform_landscape-0.3.0/lib/terraform_landscape/cli.rb:53:in `print'
12: from /Users/user/.rvm/gems/ruby-2.6.0/gems/terraform_landscape-0.3.0/lib/terraform_landscape/printer.rb:42:in `process_stream'
11: from /Users/user/.rvm/gems/ruby-2.6.0/gems/terraform_landscape-0.3.0/lib/terraform_landscape/printer.rb:95:in `process_string'
10: from /Users/user/.rvm/gems/ruby-2.6.0/gems/terraform_landscape-0.3.0/lib/terraform_landscape/terraform_plan.rb:59:in `display'
9: from /Users/user/.rvm/gems/ruby-2.6.0/gems/terraform_landscape-0.3.0/lib/terraform_landscape/terraform_plan.rb:59:in `each'
8: from /Users/user/.rvm/gems/ruby-2.6.0/gems/terraform_landscape-0.3.0/lib/terraform_landscape/terraform_plan.rb:60:in `block in display'
7: from /Users/user/.rvm/gems/ruby-2.6.0/gems/terraform_landscape-0.3.0/lib/terraform_landscape/terraform_plan.rb:86:in `display_resource'
6: from /Users/user/.rvm/gems/ruby-2.6.0/gems/terraform_landscape-0.3.0/lib/terraform_landscape/terraform_plan.rb:86:in `each'
5: from /Users/user/.rvm/gems/ruby-2.6.0/gems/terraform_landscape-0.3.0/lib/terraform_landscape/terraform_plan.rb:89:in `block in display_resource'
4: from /Users/user/.rvm/gems/ruby-2.6.0/gems/terraform_landscape-0.3.0/lib/terraform_landscape/terraform_plan.rb:155:in `display_attribute'
3: from /Users/user/.rvm/gems/ruby-2.6.0/gems/terraform_landscape-0.3.0/lib/terraform_landscape/terraform_plan.rb:191:in `display_modified_attribute'
2: from /Users/user/.rvm/gems/ruby-2.6.0/gems/terraform_landscape-0.3.0/lib/terraform_landscape/terraform_plan.rb:114:in `to_pretty_json'
1: from /Users/user/.rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0/json/common.rb:156:in `parse'
/Users/user/.rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0/json/common.rb:156:in `parse': 767: unexpected token at '{{ssm:removeFromStandbyScript}}' (JSON::ParserError)