mirror of https://github.com/hashicorp/terraform
configs: remove import block duplicate id check (#33434)
parent
3732bffe13
commit
fbff64ad45
@ -1,15 +0,0 @@
|
||||
resource "aws_instance" "web" {
|
||||
}
|
||||
|
||||
resource "aws_instance" "other_web" {
|
||||
}
|
||||
|
||||
import {
|
||||
to = aws_instance.web
|
||||
id = "test"
|
||||
}
|
||||
|
||||
import {
|
||||
to = aws_instance.other_web
|
||||
id = "test"
|
||||
}
|
||||
@ -1,34 +0,0 @@
|
||||
{
|
||||
"format_version": "1.0",
|
||||
"valid": false,
|
||||
"error_count": 1,
|
||||
"warning_count": 0,
|
||||
"diagnostics": [
|
||||
{
|
||||
"severity": "error",
|
||||
"summary": "Duplicate import for ID \"test\"",
|
||||
"detail": "An import block for the ID \"test\" and a resource of type \"aws_instance\" was already declared at testdata/validate-invalid/duplicate_import_ids/main.tf:7,1-7. The same resource cannot be imported twice.",
|
||||
"range": {
|
||||
"filename": "testdata/validate-invalid/duplicate_import_ids/main.tf",
|
||||
"start": {
|
||||
"line": 12,
|
||||
"column": 1,
|
||||
"byte": 126
|
||||
},
|
||||
"end": {
|
||||
"line": 12,
|
||||
"column": 7,
|
||||
"byte": 132
|
||||
}
|
||||
},
|
||||
"snippet": {
|
||||
"context": null,
|
||||
"code": "import {",
|
||||
"start_line": 12,
|
||||
"highlight_start_offset": 0,
|
||||
"highlight_end_offset": 6,
|
||||
"values": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in new issue