opentofu/internal/command/testdata/validate-invalid/duplicate_import_targets/output.json
CJ Horton bd6ba6cf99
check for duplicate import blocks (#33190)
Importing to the same target address twice or importing the same ID
to multiple different resources of the same type is not allowed.
2023-05-12 23:14:44 +01:00

35 lines
928 B
JSON

{
"format_version": "1.0",
"valid": false,
"error_count": 1,
"warning_count": 0,
"diagnostics": [
{
"severity": "error",
"summary": "Duplicate import configuration for \"aws_instance.web\"",
"detail": "An import block for the resource \"aws_instance.web\" was already declared at testdata/validate-invalid/duplicate_import_targets/main.tf:4,1-7. A resource can have only one import block.",
"range": {
"filename": "testdata/validate-invalid/duplicate_import_targets/main.tf",
"start": {
"line": 9,
"column": 1,
"byte": 85
},
"end": {
"line": 9,
"column": 7,
"byte": 91
}
},
"snippet": {
"context": null,
"code": "import {",
"start_line": 9,
"highlight_start_offset": 0,
"highlight_end_offset": 6,
"values": []
}
}
]
}