mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-04-06 18:01:46 -04:00
36 lines
515 B
HCL
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"
|
|
}
|
|
}
|