mirror of
https://github.com/hashicorp/terraform.git
synced 2026-02-20 16:40:08 -05:00
43 lines
670 B
HCL
43 lines
670 B
HCL
terraform {
|
|
required_providers {
|
|
testing = {
|
|
source = "hashicorp/testing"
|
|
version = "0.1.0"
|
|
}
|
|
}
|
|
}
|
|
|
|
variable "id" {
|
|
type = string
|
|
default = null
|
|
nullable = true # We'll generate an ID if none provided.
|
|
}
|
|
|
|
variable "input" {
|
|
type = string
|
|
default = null
|
|
nullable = true
|
|
}
|
|
|
|
variable "fail_plan" {
|
|
type = bool
|
|
default = null
|
|
nullable = true
|
|
}
|
|
|
|
variable "fail_apply" {
|
|
type = bool
|
|
default = null
|
|
nullable = true
|
|
}
|
|
|
|
resource "testing_failed_resource" "data" {
|
|
id = var.id
|
|
value = var.input
|
|
fail_plan = var.fail_plan
|
|
fail_apply = var.fail_apply
|
|
}
|
|
|
|
output "value" {
|
|
value = testing_failed_resource.data.value
|
|
}
|