Files
opentf/command/testdata/import-provider-datasource/main.tf
Kristin Laemmert 80862f3436 command/import: attach references before validating provider (#22862)
There was an order-of-operations bug where the import graph builder was
validating that the provider did not have any resource references before
references were actually being attached. This PR fixes the order of
operations and adds a test (in the command package).

Fixes #22804
2020-02-12 14:00:08 -05:00

14 lines
188 B
HCL

provider "test" {
foo = data.test_data.key.id
}
provider "test" {
alias = "credentials"
}
data "test_data" "key" {
provider = test.credentials
}
resource "test_instance" "foo" {}