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