Files
opentf/internal/tofu/testdata/static-validate-refs/static-validate-refs.tf
Andrei Ciobanu 4077c3d84f Feature branch: Ephemeral resources (#2852)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2025-08-04 16:39:12 +03:00

36 lines
515 B
HCL

terraform {
required_providers {
boop = {
source = "foobar/beep" # intentional mismatch between local name and type
}
}
}
resource "aws_instance" "no_count" {
}
resource "aws_instance" "count" {
count = 1
}
resource "boop_instance" "yep" {
}
resource "boop_whatever" "nope" {
}
data "beep" "boop" {
}
ephemeral "foo" "bar" {
}
check "foo" {
data "boop_data" "boop_nested" {}
assert {
condition = data.boop_data.boop_nested.id == null
error_message = "check failed"
}
}