2020-12-11 19:09:25 +01:00
{
2021-03-16 14:46:36 +01:00
"format_version" : "0.1" ,
2020-12-11 19:09:25 +01:00
"valid" : false ,
"error_count" : 1 ,
"warning_count" : 0 ,
"diagnostics" : [
{
"severity" : "error" ,
"summary" : "Duplicate resource \"aws_instance\" configuration" ,
"detail" : "A aws_instance resource named \"web\" was already declared at testdata/validate-invalid/multiple_resources/main.tf:1,1-30. Resource names must be unique per type in each module." ,
"range" : {
"filename" : "testdata/validate-invalid/multiple_resources/main.tf" ,
"start" : {
"line" : 4 ,
"column" : 1 ,
"byte" : 35
} ,
"end" : {
"line" : 4 ,
"column" : 30 ,
"byte" : 64
}
2021-03-11 18:57:07 +01:00
} ,
"snippet" : {
"context" : null ,
"code" : "resource \"aws_instance\" \"web\" {" ,
"start_line" : 4 ,
"highlight_start_offset" : 0 ,
"highlight_end_offset" : 29 ,
"values" : [ ]
2020-12-11 19:09:25 +01:00
}
}
]
}