opentofu/internal/command/testdata/validate-invalid/duplicate_import_targets/main.tf
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

13 lines
135 B
HCL

resource "aws_instance" "web" {
}
import {
to = aws_instance.web
id = "test"
}
import {
to = aws_instance.web
id = "test2"
}