mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
bd6ba6cf99
Importing to the same target address twice or importing the same ID to multiple different resources of the same type is not allowed.
35 lines
928 B
JSON
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": []
|
|
}
|
|
}
|
|
]
|
|
}
|