blob: 0064a4b4aece09815f7061dc61dc337ae96fa75a [file] [log] [blame]
resource "aws_instance" "foo" {
test_string = "Hello, world!"
}
resource "aws_instance" "baz" {
test_string = aws_instance.foo.test_string
}
check "my_check" {
data "aws_data_source" "bar" {
id = "UI098L"
}
assert {
condition = data.aws_data_source.bar.foo == "valid value"
error_message = "invalid value"
}
}