You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/testing/equivalence-tests/tests/data_read/main.tf

40 lines
644 B

terraform {
required_providers {
tfcoremock = {
source = "hashicorp/tfcoremock"
version = "0.1.1"
}
local = {
source = "hashicorp/local"
version = "2.2.3"
}
random = {
source = "hashicorp/random"
version = "3.4.3"
}
}
}
provider "tfcoremock" {}
provider "local" {}
provider "random" {}
module "create" {
source = "./create"
contents = "hello, world!"
}
data "tfcoremock_simple_resource" "read" {
id = module.create.id
depends_on = [
module.create
]
}
resource "tfcoremock_simple_resource" "create" {
string = data.tfcoremock_simple_resource.read.string
}